diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-11-13 22:11:44 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-11-13 22:11:44 +0000 |
| commit | 218580af71aa22f429147e6e625d0e22cc8d6c3d (patch) | |
| tree | 33060b09811c43de35c7f671f15eeee307ba3825 /cpp | |
| parent | d233f5d3115c719a7ddf7134da1329d9c092d673 (diff) | |
| download | qpid-python-218580af71aa22f429147e6e625d0e22cc8d6c3d.tar.gz | |
QPID-4435: Reconnect on connect failure hangs at third address to try
- In the case of retrying a connection failure the epoll code mistakenly
thinks the connection has just been disconnected and therefore should
never be seen again.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1408983 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/sys/epoll/EpollPoller.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/epoll/EpollPoller.cpp b/cpp/src/qpid/sys/epoll/EpollPoller.cpp index 3769a11f7d..6fdf99637f 100644 --- a/cpp/src/qpid/sys/epoll/EpollPoller.cpp +++ b/cpp/src/qpid/sys/epoll/EpollPoller.cpp @@ -384,6 +384,7 @@ void PollerPrivate::resetMode(PollerHandlePrivate& eh) { int rc = ::epoll_ctl(epollFd, EPOLL_CTL_MOD, eh.fd(), &epe); // If something has closed the fd in the meantime try adding it back if (rc ==-1 && errno == ENOENT) { + eh.setIdle(); // Reset our handle as if starting from scratch rc = ::epoll_ctl(epollFd, EPOLL_CTL_ADD, eh.fd(), &epe); } QPID_POSIX_CHECK(rc); |
