mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 06:44:39 +02:00
Add handler tracking locations to flat_stream
This commit is contained in:
@@ -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.
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user