Add handler tracking locations to flat_stream

This commit is contained in:
Richard Hodges
2020-08-26 14:32:42 +02:00
parent 886ac8b7a0
commit 932db900c3
2 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
Version XXX:
* Add handler tracking locations to flat_stream.
* Add handler tracking locations to detect_ssl.
* Add handler tracking locations to icy_stream.
* Add handler tracking locations to basic_stream.

View File

@@ -51,6 +51,11 @@ public:
s.buffer_.commit(net::buffer_copy(
s.buffer_.prepare(result.size),
b, result.size));
BOOST_ASIO_HANDLER_LOCATION((
__FILE__, __LINE__,
"flat_stream::async_write_some"));
s.stream_.async_write_some(
s.buffer_.data(), std::move(*this));
}
@@ -58,6 +63,11 @@ public:
{
s.buffer_.clear();
s.buffer_.shrink_to_fit();
BOOST_ASIO_HANDLER_LOCATION((
__FILE__, __LINE__,
"flat_stream::async_write_some"));
s.stream_.async_write_some(
beast::buffers_prefix(
result.size, b), std::move(*this));