forked from boostorg/beast
1 parent
70f232f6dd
commit
db2f0052ff
2 files changed
+6
-1
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user