mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
testReuseSession: remove bad checks for session reuse
This commit is contained in:
@@ -140,7 +140,7 @@ void HTTPSClientSession::connect(const SocketAddress& address)
|
||||
if (getProxyHost().empty() || bypassProxy())
|
||||
{
|
||||
SecureStreamSocket sss(socket());
|
||||
if (sss.getPeerHostName().empty())
|
||||
if (sss.getPeerHostName().empty())
|
||||
{
|
||||
sss.setPeerHostName(getHost());
|
||||
}
|
||||
@@ -172,8 +172,8 @@ int HTTPSClientSession::read(char* buffer, std::streamsize length)
|
||||
try
|
||||
{
|
||||
return HTTPSession::read(buffer, length);
|
||||
}
|
||||
catch(SSLConnectionUnexpectedlyClosedException&)
|
||||
}
|
||||
catch (SSLConnectionUnexpectedlyClosedException&)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user