Add handler tracking locations to tcp teardown

This commit is contained in:
Richard Hodges
2020-08-27 09:49:26 +02:00
parent 2f6bf76cb4
commit 8c21c80f43
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version XXX:
* Add handler tracking locations to tcp teardown.
* Eliminate spurious uninitialised variable warning in detect_ssl.
* Add handler tracking locations to flat_stream.
* Add handler tracking locations to detect_ssl.

View File

@ -89,7 +89,7 @@ public:
{
BOOST_ASIO_HANDLER_LOCATION((
__FILE__, __LINE__,
"websocket::ssl::teardown"
"websocket::tcp::async_teardown"
));
s_.async_wait(
@ -121,8 +121,15 @@ public:
if(! cont)
{
BOOST_ASIO_CORO_YIELD
net::post(bind_front_handler(
std::move(*this), ec));
{
BOOST_ASIO_HANDLER_LOCATION((
__FILE__, __LINE__,
"websocket::tcp::async_teardown"
));
net::post(bind_front_handler(
std::move(*this), ec));
}
}
{
error_code ignored;