porting rev.1913 from 1.4.4 (fixed SF# 3550553)

This commit is contained in:
Aleksandar Fabijanic 2012-08-18 02:24:52 +00:00
parent 662050937e
commit 369218ef37

View File

@ -151,7 +151,13 @@ void SecureSocketImpl::connectNB(const SocketAddress& address)
poco_assert (!_pSSL);
_pSocket->connectNB(address);
Poco::Timespan receiveTimeout = _pSocket->getReceiveTimeout();
Poco::Timespan sendTimeout = _pSocket->getSendTimeout();
_pSocket->setReceiveTimeout(timeout);
_pSocket->setSendTimeout(timeout);
connectSSL(false);
_pSocket->setReceiveTimeout(receiveTimeout);
_pSocket->setSendTimeout(sendTimeout);
}