mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
Add handler tracking locations to icy_stream
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
Version XXX:
|
||||
|
||||
* Add handler tracking locations to icy_stream.
|
||||
* Add handler tracking locations to basic_stream.
|
||||
* Add handler tracking locations to http operations.
|
||||
|
||||
|
@ -95,10 +95,16 @@ public:
|
||||
{
|
||||
// Try to read the first three characters
|
||||
BOOST_ASIO_CORO_YIELD
|
||||
s_.next_layer().async_read_some(
|
||||
net::mutable_buffer(
|
||||
s_.buf_ + s_.n_, 3 - s_.n_),
|
||||
std::move(*this));
|
||||
{
|
||||
BOOST_ASIO_HANDLER_LOCATION((
|
||||
__FILE__, __LINE__,
|
||||
"http::icy_stream::async_read_some"));
|
||||
|
||||
s_.next_layer().async_read_some(
|
||||
net::mutable_buffer(
|
||||
s_.buf_ + s_.n_, 3 - s_.n_),
|
||||
std::move(*this));
|
||||
}
|
||||
s_.n_ += static_cast<char>(bytes_transferred);
|
||||
if(ec)
|
||||
goto upcall;
|
||||
@ -127,8 +133,14 @@ public:
|
||||
else
|
||||
{
|
||||
BOOST_ASIO_CORO_YIELD
|
||||
s_.next_layer().async_read_some(
|
||||
b_, std::move(*this));
|
||||
{
|
||||
BOOST_ASIO_HANDLER_LOCATION((
|
||||
__FILE__, __LINE__,
|
||||
"http::icy_stream::async_read_some"));
|
||||
|
||||
s_.next_layer().async_read_some(
|
||||
b_, std::move(*this));
|
||||
}
|
||||
}
|
||||
upcall:
|
||||
if(! cont)
|
||||
@ -136,9 +148,15 @@ public:
|
||||
ec_ = ec;
|
||||
n_ = bytes_transferred;
|
||||
BOOST_ASIO_CORO_YIELD
|
||||
s_.next_layer().async_read_some(
|
||||
net::mutable_buffer{},
|
||||
std::move(*this));
|
||||
{
|
||||
BOOST_ASIO_HANDLER_LOCATION((
|
||||
__FILE__, __LINE__,
|
||||
"http::icy_stream::async_read_some"));
|
||||
|
||||
s_.next_layer().async_read_some(
|
||||
net::mutable_buffer{},
|
||||
std::move(*this));
|
||||
}
|
||||
ec = ec_;
|
||||
bytes_transferred = n_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user