Skip to content

Commit 369218e

Browse files
committed
porting rev.1913 from 1.4.4 (fixed SF# 3550553)
1 parent 6620509 commit 369218e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

NetSSL_OpenSSL/src/SecureSocketImpl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,13 @@ void SecureSocketImpl::connectNB(const SocketAddress& address)
151151
poco_assert (!_pSSL);
152152

153153
_pSocket->connectNB(address);
154+
Poco::Timespan receiveTimeout = _pSocket->getReceiveTimeout();
155+
Poco::Timespan sendTimeout = _pSocket->getSendTimeout();
156+
_pSocket->setReceiveTimeout(timeout);
157+
_pSocket->setSendTimeout(timeout);
154158
connectSSL(false);
159+
_pSocket->setReceiveTimeout(receiveTimeout);
160+
_pSocket->setSendTimeout(sendTimeout);
155161
}
156162

157163

0 commit comments

Comments
 (0)