refactor select code + add protection against large fds (cf Android 9)

This commit is contained in:
Benjamin Sergeant
2019-06-25 15:41:39 -07:00
parent 0423ed01a6
commit e8a20c7e8a
8 changed files with 76 additions and 59 deletions

View File

@ -131,7 +131,7 @@ namespace ix
return false;
}
return response->payload.empty()
return response->payload.empty()
? true
: socket->writeBytes(response->payload, nullptr);
}