Ignore error on socket shutdown

This commit is contained in:
Vinnie Falco
2016-02-12 18:48:29 -05:00
parent db092449f9
commit 2c3128d9ba

View File

@@ -233,15 +233,8 @@ public:
if (! expect_read (s, "Hello, world!\n"))
return ;
try
{
s.shutdown (socket::shutdown_both);
pass();
}
catch (std::exception const& e)
{
fail (e.what());
}
boost::system::error_code ec;
s.shutdown(socket::shutdown_both, ec);
std::this_thread::sleep_for (std::chrono::seconds (1));
}
@@ -274,15 +267,8 @@ public:
if (! expect_read (s, "Hello, world!\n"))
return ;
try
{
s.shutdown (socket::shutdown_both);
pass();
}
catch (std::exception const& e)
{
fail (e.what());
}
boost::system::error_code ec;
s.shutdown(socket::shutdown_both, ec);
}
void basicTests()