diff options
author | June McEnroe <june@causal.agency> | 2018-07-24 17:23:57 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-07-24 17:23:57 -0400 |
commit | 07d8a9ed7697c7a23c789b7f119b78f4783bc0aa (patch) | |
tree | 049fb5aec41e8c45a995472ff348fab796ba7cfe | |
parent | Print time_t with %jd in meta (diff) | |
download | torus-07d8a9ed7697c7a23c789b7f119b78f4783bc0aa.tar.gz torus-07d8a9ed7697c7a23c789b7f119b78f4783bc0aa.zip |
Revert "Do not set non-blocking on client sockets"
This reverts commit 44bec9d4ec5d3240b1c518ff11bfd3d8a19d2354. There actually are adverse effects.
-rw-r--r-- | server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server.c b/server.c index ba45b30..b2b651b 100644 --- a/server.c +++ b/server.c @@ -350,6 +350,7 @@ int main() { if (!event.udata) { int fd = accept(server, NULL, NULL); if (fd < 0) err(EX_IOERR, "accept"); + fcntl(fd, F_SETFL, O_NONBLOCK); int on = 1; error = setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on)); |