0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd::net: Tweak what's left of the socket handle_ready cattle grid.

This commit is contained in:
Jason Volk 2018-01-24 14:12:38 -08:00
parent cc1b82cd59
commit 7bf9ce225c
2 changed files with 4 additions and 14 deletions

View file

@ -321,6 +321,7 @@ ircd::handle_ec(client &client,
if(ec.category() == system_category()) switch(ec.value())
{
case success: return true;
case operation_canceled: return false;
case timed_out: return handle_ec_timeout(client);
default: return handle_ec_default(client, ec);
}

View file

@ -1512,6 +1512,9 @@ noexcept try
}
else cancel_timeout();
if(!ec && !sd.is_open())
ec = { bad_file_descriptor, system_category() };
log.debug("socket(%p) local[%s] remote[%s] ready %s %s available:%zu",
this,
string(local_ipport(*this)),
@ -1520,20 +1523,6 @@ noexcept try
string(ec),
available(*this));
if(ec.category() == system_category()) switch(ec.value())
{
case operation_canceled:
return;
// This is a condition which we hide from the user.
case bad_file_descriptor:
return;
// Everything else is passed up to the user.
default:
break;
}
call_user(callback, ec);
}
catch(const boost::system::system_error &e)