diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-10-28 23:43:46 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-10-28 23:43:46 +0000 |
commit | 891493f277f6a2895399a955a56bac8f4ef1379a (patch) | |
tree | 2abc9e6bd69bb01adf1b4be3669b38f9ae0abb83 /cpp | |
parent | b2fec850e199f73a64c42f93ce8c95f7a81d518d (diff) | |
download | qpid-python-891493f277f6a2895399a955a56bac8f4ef1379a.tar.gz |
Ensure connections are done blocking; there's no asynch connect support yet. Fixes intermittent connection hangs.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@830796 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/sys/windows/AsynchIO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/windows/AsynchIO.cpp b/cpp/src/qpid/sys/windows/AsynchIO.cpp index 7241398c9e..e4174ee445 100644 --- a/cpp/src/qpid/sys/windows/AsynchIO.cpp +++ b/cpp/src/qpid/sys/windows/AsynchIO.cpp @@ -189,9 +189,9 @@ AsynchConnector::AsynchConnector(const Socket& sock, ConnectedCallback connCb, FailedCallback failCb) : connCallback(connCb), failCallback(failCb), socket(sock) { - socket.setNonblocking(); try { socket.connect(hostname, port); + socket.setNonblocking(); connCallback(socket); } catch(std::exception& e) { if (failCallback) |