diff options
Diffstat (limited to 'ace/SOCK_Connector.cpp')
-rw-r--r-- | ace/SOCK_Connector.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ace/SOCK_Connector.cpp b/ace/SOCK_Connector.cpp index e7224370b1f..e38ac60e8fd 100644 --- a/ace/SOCK_Connector.cpp +++ b/ace/SOCK_Connector.cpp @@ -109,6 +109,9 @@ ACE_SOCK_Connector::complete (ACE_SOCK_Stream &new_stream, { ACE_TRACE ("ACE_SOCK_Connector::complete"); #if defined (ACE_HAS_BROKEN_NON_BLOCKING_CONNECTS) + // Win32 has a timing problem - if you check to see if the + // connection has completed too fast, it will fail - so wait a bit + // to let it catch up. ACE_OS::sleep (0); #endif /* ACE_HAS_BROKEN_NON_BLOCKING_CONNECTS */ ACE_HANDLE h = ACE::handle_timed_complete (this->get_handle (), tv); |