diff --git a/ircd/net.cc b/ircd/net.cc index 3a1cd4a4c..3de80063f 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -2013,9 +2013,18 @@ ircd::net::socket::cancel() noexcept { cancel_timeout(); + boost::system::error_code ec; sd.cancel(ec); - assert(!ec); + if(likely(ec == boost::system::errc::success)) + return; + + log::dwarning + { + log, "socket(%p) cancel :%s", + (const void *)this, + string(ec) + }; } void