Skip to content

Commit 66cc818

Browse files
authored
Merge pull request #480 from ClickHouse/bad-address-beta-fix
Reset the read buffer of Poco's SecureSocketImpl before the handshake
2 parents eccc6b1 + ee5a46c commit 66cc818

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/poco/NetSSL_Win/src/SecureSocketImpl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ void SecureSocketImpl::performInitialClientHandshake()
777777
// get initial security token
778778
_outSecBuffer.reset(true);
779779
_outSecBuffer.setSecBufferToken(0, 0, 0);
780+
_recvBuffer.setCapacity(IO_BUFFER_SIZE);
781+
_recvBufferOffset = 0;
780782

781783
TimeStamp ts;
782784
DWORD contextAttributes(0);

0 commit comments

Comments
 (0)