mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
fix(SecureSocket): Reset does not close socket, it is closed in dtor. (#4415)
This commit is contained in:
@@ -54,6 +54,7 @@ SecureSocketImpl::~SecureSocketImpl()
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
close();
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
@@ -634,7 +635,6 @@ void SecureSocketImpl::setPeerHostName(const std::string& peerHostName)
|
|||||||
|
|
||||||
void SecureSocketImpl::reset()
|
void SecureSocketImpl::reset()
|
||||||
{
|
{
|
||||||
close();
|
|
||||||
if (_pSSL)
|
if (_pSSL)
|
||||||
{
|
{
|
||||||
::SSL_set_ex_data(_pSSL, SSLManager::instance().socketIndex(), nullptr);
|
::SSL_set_ex_data(_pSSL, SSLManager::instance().socketIndex(), nullptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user