forked from boostorg/beast
Improvements to TestPeer and PeerTest classes
This commit is contained in:
@@ -100,6 +100,11 @@ void TestPeerLogicAsyncServer::on_shutdown (error_code const& ec)
|
||||
{
|
||||
if (success (error (ec), true))
|
||||
{
|
||||
if (socket ().requires_handshake ())
|
||||
{
|
||||
socket ().shutdown (Socket::shutdown_both, error ());
|
||||
}
|
||||
|
||||
if (success (socket ().close (error ())))
|
||||
{
|
||||
// doing nothing here is intended,
|
||||
|
||||
Reference in New Issue
Block a user