Merge pull request #7995

797ca97 socks: ignore any exceptions in shutdown/close (selsta)
This commit is contained in:
luigi1111 2021-10-25 18:53:34 -05:00
commit 00ac048958
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 3 additions and 2 deletions

View File

@ -321,8 +321,9 @@ namespace socks
{
if (self && self->proxy_.is_open())
{
self->proxy_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
self->proxy_.close();
boost::system::error_code ec;
self->proxy_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
self->proxy_.close(ec);
}
});
}