qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r605982 - /incubator/qpid/trunk/qpid/cpp/src/qpid/sys/epoll/EpollPoller.cpp
Date Thu, 20 Dec 2007 17:40:58 GMT
Author: astitcher
Date: Thu Dec 20 09:40:46 2007
New Revision: 605982

URL: http://svn.apache.org/viewvc?rev=605982&view=rev
Log:
Probable fix for QPID-712:
Poller::epollToDirection now treats EPOLLERR as equivalent to EPOLLHUP for
purposes of indicating a disconnect from the peer on the write side of the
connection

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/sys/epoll/EpollPoller.cpp

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/sys/epoll/EpollPoller.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/sys/epoll/EpollPoller.cpp?rev=605982&r1=605981&r2=605982&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/sys/epoll/EpollPoller.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/sys/epoll/EpollPoller.cpp Thu Dec 20 09:40:46 2007
@@ -165,7 +165,9 @@
             case ::EPOLLIN: return Poller::READABLE;
             case ::EPOLLOUT: return Poller::WRITABLE;
             case ::EPOLLIN | ::EPOLLOUT: return Poller::READ_WRITABLE;
-            default: return (events & ::EPOLLHUP) ? Poller::DISCONNECTED : Poller::INVALID;
+            default:
+                return (events & ::EPOLLHUP | ::EPOLLERR) ?
+                    Poller::DISCONNECTED : Poller::INVALID;
         }
     }
 



Mime
View raw message