Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / beast / core / impl / basic_stream.hpp
index 336c09f..4cb5058 100644 (file)
@@ -145,9 +145,13 @@ basic_stream<Protocol, Executor, RatePolicy>::
 impl_type::
 close()
 {
-    socket.close();
+    {
+        error_code ec;
+        socket.close(ec);
+    }
     timer.cancel();
 
+
     // have to let the read/write ops cancel the timer,
     // otherwise we will get error::timeout on close when
     // we actually want net::error::operation_aborted.