diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-03-09 09:17:02 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-03-09 09:17:02 -0230 |
commit | 936b7a70c2729bf72f35ed6c7bc4c46222aeec8b (patch) | |
tree | e8986ae58bc445ef60ad7de342c5cc2bc87d1775 /cpp/src/IceSSL/SecureTransportTransceiverI.cpp | |
parent | ICE-6353 - IceStorm/Freeze/BerkeleyDB: PANIC: Too many open files (diff) | |
download | ice-936b7a70c2729bf72f35ed6c7bc4c46222aeec8b.tar.bz2 ice-936b7a70c2729bf72f35ed6c7bc4c46222aeec8b.tar.xz ice-936b7a70c2729bf72f35ed6c7bc4c46222aeec8b.zip |
Fixed crash on Windows related to buffer size changes
Diffstat (limited to 'cpp/src/IceSSL/SecureTransportTransceiverI.cpp')
-rw-r--r-- | cpp/src/IceSSL/SecureTransportTransceiverI.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp index 1e5c824ed1d..c384def1f59 100644 --- a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +++ b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp @@ -527,8 +527,11 @@ IceSSL::TransceiverI::getNativeConnectionInfo() const NativeConnectionInfoPtr info = new NativeConnectionInfo(); IceInternal::fdToAddressAndPort(_stream->fd(), info->localAddress, info->localPort, info->remoteAddress, info->remotePort); - info->rcvSize = IceInternal::getRecvBufferSize(_stream->fd()); - info->sndSize = IceInternal::getSendBufferSize(_stream->fd()); + if(_stream->fd() != INVALID_SOCKET) + { + info->rcvSize = IceInternal::getRecvBufferSize(_stream->fd()); + info->sndSize = IceInternal::getSendBufferSize(_stream->fd()); + } if(_ssl) { |