Fix teardown for TIME_WAIT

fix #1024, fix #1029
This commit is contained in:
Vinnie Falco
2018-02-20 04:33:43 -08:00
parent de8d0b6843
commit 593ccb15cd
7 changed files with 82 additions and 52 deletions
@@ -199,7 +199,7 @@ int main(int argc, char** argv)
std::make_shared<session>(ioc)->run(host, port, text);
// Run the I/O service. The call will return when
// the get operation is complete.
// the socket is closed.
ioc.run();
return EXIT_SUCCESS;