mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-01 19:17:59 +00:00
fixed GH #2830: Fix wrong buffer size in client handshake when re-using a SecureSocket
This commit is contained in:
@@ -970,6 +970,8 @@ void SecureSocketImpl::performClientHandshakeLoopCondReceive()
|
||||
performClientHandshakeLoopInit();
|
||||
if (_needData)
|
||||
{
|
||||
if (_recvBuffer.capacity() != IO_BUFFER_SIZE)
|
||||
_recvBuffer.setCapacity(IO_BUFFER_SIZE);
|
||||
performClientHandshakeLoopReceive();
|
||||
}
|
||||
else _needData = true;
|
||||
|
||||
Reference in New Issue
Block a user