]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/beast/core/impl/flat_stream.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / beast / core / impl / flat_stream.hpp
index f99ec02678d24f1f4d122520125c12de30c2548d..11c75c4c189b3a351ee64e01b5fbc6a33694447d 100644 (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));
@@ -144,7 +154,7 @@ read_some(MutableBufferSequence const& buffers, error_code& ec)
 template<class NextLayer>
 template<
     class MutableBufferSequence,
-    class ReadHandler>
+    BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
 BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
 flat_stream<NextLayer>::
 async_read_some(
@@ -225,7 +235,7 @@ write_some(ConstBufferSequence const& buffers, error_code& ec)
 template<class NextLayer>
 template<
     class ConstBufferSequence,
-    class WriteHandler>
+    BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
 BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
 flat_stream<NextLayer>::
 async_write_some(