mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Add handler tracking locations to detect_ssl
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
Version XXX:
|
Version XXX:
|
||||||
|
|
||||||
|
* Add handler tracking locations to detect_ssl.
|
||||||
* Add handler tracking locations to icy_stream.
|
* Add handler tracking locations to icy_stream.
|
||||||
* Add handler tracking locations to basic_stream.
|
* Add handler tracking locations to basic_stream.
|
||||||
* Add handler tracking locations to http operations.
|
* Add handler tracking locations to http operations.
|
||||||
|
@@ -591,8 +591,19 @@ operator()(error_code ec, std::size_t bytes_transferred, bool cont)
|
|||||||
// by the move, are first moved to the stack before calling the
|
// by the move, are first moved to the stack before calling the
|
||||||
// initiating function.
|
// initiating function.
|
||||||
|
|
||||||
yield stream_.async_read_some(buffer_.prepare(
|
yield
|
||||||
read_size(buffer_, 1536)), std::move(*this));
|
{
|
||||||
|
// This macro facilitates asynchrnous handler tracking and
|
||||||
|
// debugging when the preprocessor macro
|
||||||
|
// BOOST_ASIO_CUSTOM_HANDLER_TRACKING is defined.
|
||||||
|
|
||||||
|
BOOST_ASIO_HANDLER_LOCATION((
|
||||||
|
__FILE__, __LINE__,
|
||||||
|
"async_detect_ssl"));
|
||||||
|
|
||||||
|
stream_.async_read_some(buffer_.prepare(
|
||||||
|
read_size(buffer_, 1536)), std::move(*this));
|
||||||
|
}
|
||||||
|
|
||||||
// Commit what we read into the buffer's input area.
|
// Commit what we read into the buffer's input area.
|
||||||
buffer_.commit(bytes_transferred);
|
buffer_.commit(bytes_transferred);
|
||||||
@@ -626,7 +637,14 @@ operator()(error_code ec, std::size_t bytes_transferred, bool cont)
|
|||||||
// used in the call to async_read_some above, to avoid
|
// used in the call to async_read_some above, to avoid
|
||||||
// instantiating another version of the function template.
|
// instantiating another version of the function template.
|
||||||
|
|
||||||
yield stream_.async_read_some(buffer_.prepare(0), std::move(*this));
|
yield
|
||||||
|
{
|
||||||
|
BOOST_ASIO_HANDLER_LOCATION((
|
||||||
|
__FILE__, __LINE__,
|
||||||
|
"async_detect_ssl"));
|
||||||
|
|
||||||
|
stream_.async_read_some(buffer_.prepare(0), std::move(*this));
|
||||||
|
}
|
||||||
|
|
||||||
// Restore the saved error code
|
// Restore the saved error code
|
||||||
ec = ec_;
|
ec = ec_;
|
||||||
|
Reference in New Issue
Block a user