summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-10-28 23:43:46 +0000
committerStephen D. Huston <shuston@apache.org>2009-10-28 23:43:46 +0000
commit891493f277f6a2895399a955a56bac8f4ef1379a (patch)
tree2abc9e6bd69bb01adf1b4be3669b38f9ae0abb83 /cpp
parentb2fec850e199f73a64c42f93ce8c95f7a81d518d (diff)
downloadqpid-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.cpp2
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)