We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6620509 commit 369218eCopy full SHA for 369218e
1 file changed
NetSSL_OpenSSL/src/SecureSocketImpl.cpp
@@ -151,7 +151,13 @@ void SecureSocketImpl::connectNB(const SocketAddress& address)
151
poco_assert (!_pSSL);
152
153
_pSocket->connectNB(address);
154
+ Poco::Timespan receiveTimeout = _pSocket->getReceiveTimeout();
155
+ Poco::Timespan sendTimeout = _pSocket->getSendTimeout();
156
+ _pSocket->setReceiveTimeout(timeout);
157
+ _pSocket->setSendTimeout(timeout);
158
connectSSL(false);
159
+ _pSocket->setReceiveTimeout(receiveTimeout);
160
+ _pSocket->setSendTimeout(sendTimeout);
161
}
162
163
0 commit comments