| 474 | } |
| 475 | |
| 476 | void |
| 477 | do_close() |
| 478 | { |
| 479 | // Send a TCP shutdown |
| 480 | beast::error_code ec; |
| 481 | stream_.socket().shutdown(tcp::socket::shutdown_send, ec); |
| 482 | |
| 483 | // At this point the connection is closed gracefully |
| 484 | } |
| 485 | }; |
| 486 | |
| 487 | //------------------------------------------------------------------------------ |