summary refs log tree commit diff homepage
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-07-24 16:57:34 -0400
committerJune McEnroe <june@causal.agency>2018-07-24 16:57:34 -0400
commit44bec9d4ec5d3240b1c518ff11bfd3d8a19d2354 (patch)
tree57aea39e036f081ad3e4fb9a00f51f4a6d7ec15b /server.c
parentUse EV_SET (diff)
downloadtorus-44bec9d4ec5d3240b1c518ff11bfd3d8a19d2354.tar.gz
torus-44bec9d4ec5d3240b1c518ff11bfd3d8a19d2354.zip
Do not set non-blocking on client sockets
On NetBSD, the send buffer seems to only be 4096 bytes, so sending
SERVER_TILE would get cut short. Just not setting non-blocking allows
messages to properly get through and *seems* to have no adverse effect.
Diffstat (limited to 'server.c')
-rw-r--r--server.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/server.c b/server.c
index b2b651b..ba45b30 100644
--- a/server.c
+++ b/server.c
@@ -350,7 +350,6 @@ 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));
etupRemoteJune McEnroe 2022-07-08Remove TOURJune McEnroe 2022-07-03Add The Bone Shard EmperorJune McEnroe 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe