mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
ircd::net: Tweak calls to set socket non-blocking.
This commit is contained in:
parent
92cdccf956
commit
74a28f2f10
1 changed files with 2 additions and 1 deletions
|
@ -1478,6 +1478,7 @@ ircd::net::acceptor::open()
|
|||
interrupting = false;
|
||||
a.open(ep.protocol());
|
||||
a.set_option(reuse_address);
|
||||
a.non_blocking(true);
|
||||
log::debug
|
||||
{
|
||||
log, "%s opened listener socket", string(logheadbuf, *this)
|
||||
|
@ -1770,11 +1771,11 @@ noexcept try
|
|||
|
||||
check_handshake_error(ec, *sock);
|
||||
sock->cancel_timeout();
|
||||
assert(bool(cb));
|
||||
|
||||
// Toggles the behavior of non-async functions; see func comment
|
||||
blocking(*sock, false);
|
||||
|
||||
assert(bool(cb));
|
||||
cb(*listener_, sock);
|
||||
}
|
||||
catch(const ctx::interrupted &e)
|
||||
|
|
Loading…
Reference in a new issue