testReuseSession: remove bad checks for session reuse

This commit is contained in:
Günter Obiltschnig
2021-06-16 18:30:30 +02:00
parent 551b00c821
commit 746a69dc09
2 changed files with 3 additions and 12 deletions

View File

@@ -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;
}