summaryrefslogtreecommitdiff
path: root/cpp/src/Ice
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-04-29 10:35:53 +0200
committerBenoit Foucher <benoit@zeroc.com>2016-04-29 10:35:53 +0200
commit141deb91a7bf837dba79a36bc64ad1383398a419 (patch)
tree01c5939b00e7db317da595dd339604cc47cc652d /cpp/src/Ice
parentAdd encoding comments to python generated code (diff)
downloadice-141deb91a7bf837dba79a36bc64ad1383398a419.tar.bz2
ice-141deb91a7bf837dba79a36bc64ad1383398a419.tar.xz
ice-141deb91a7bf837dba79a36bc64ad1383398a419.zip
Fixed bug where connection to SOCKs/HTTP proxies could hang under certain conditions
Diffstat (limited to 'cpp/src/Ice')
-rw-r--r--cpp/src/Ice/StreamSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/StreamSocket.cpp b/cpp/src/Ice/StreamSocket.cpp
index 2f5cb94021f..fa3761f5fa0 100644
--- a/cpp/src/Ice/StreamSocket.cpp
+++ b/cpp/src/Ice/StreamSocket.cpp
@@ -32,7 +32,7 @@ StreamSocket::StreamSocket(const ProtocolInstancePtr& instance,
#ifndef ICE_USE_IOCP
if(doConnect(_fd, _proxy ? _proxy->getAddress() : _addr, sourceAddr))
{
- _state = StateConnected;
+ _state = _proxy ? StateProxyWrite : StateConnected;
}
#endif
try