fixed GH #2830: Fix wrong buffer size in client handshake when re-using a SecureSocket

This commit is contained in:
Günter Obiltschnig
2020-01-22 13:11:37 +01:00
parent 0865fcf039
commit 3300467543

View File

@@ -970,6 +970,8 @@ void SecureSocketImpl::performClientHandshakeLoopCondReceive()
performClientHandshakeLoopInit(); performClientHandshakeLoopInit();
if (_needData) if (_needData)
{ {
if (_recvBuffer.capacity() != IO_BUFFER_SIZE)
_recvBuffer.setCapacity(IO_BUFFER_SIZE);
performClientHandshakeLoopReceive(); performClientHandshakeLoopReceive();
} }
else _needData = true; else _needData = true;