diff options
Diffstat (limited to 'cpp/src/Ice/TcpTransceiver.cpp')
-rw-r--r-- | cpp/src/Ice/TcpTransceiver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp index d26545f22de..ca7f250a259 100644 --- a/cpp/src/Ice/TcpTransceiver.cpp +++ b/cpp/src/Ice/TcpTransceiver.cpp @@ -277,14 +277,14 @@ IceInternal::TcpTransceiver::read(Buffer& buf) } #ifdef ICE_USE_IOCP -void +bool IceInternal::TcpTransceiver::startWrite(Buffer& buf) { if(_state < StateConnected) { doConnectAsync(_fd, _connectAddr, _write); _desc = fdToString(_fd); - return; + return false; } assert(!buf.b.empty() && buf.i != buf.b.end()); @@ -316,6 +316,7 @@ IceInternal::TcpTransceiver::startWrite(Buffer& buf) } } } + return packetSize == static_cast<int>(buf.b.end() - buf.i); } void |