Added timeouts and checked for POLLRDHUP events

This commit is contained in:
Nate Choe
2022-01-29 16:37:54 -06:00
parent c46ed581c3
commit ab2e28ed10
11 changed files with 47 additions and 16 deletions

View File

@@ -145,7 +145,7 @@ int main(int argc, char **argv) {
createLog("swebs started");
for (;;) {
Stream *stream = acceptStream(listener, O_NONBLOCK);
Stream *stream = acceptStream(listener);
if (stream == NULL) {
createLog("Accepting a stream failed");
continue;