diff options
-rw-r--r-- | cpp/src/IceSSL/OpenSSLTransceiverI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp index aa6e6b22179..8acfe25a67e 100644 --- a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +++ b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp @@ -108,10 +108,10 @@ OpenSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal:: } else { - #ifdef ICE_USE_IOCP +#ifdef ICE_USE_IOCP + assert(_sentBytes == 0); _maxSendPacketSize = std::max(512, IceInternal::getSendBufferSize(fd)); _maxRecvPacketSize = std::max(512, IceInternal::getRecvBufferSize(fd)); - _sentBytes = 0; if(!BIO_new_bio_pair(&bio, _maxSendPacketSize, &_memBio, _maxRecvPacketSize)) { bio = 0; |