From 44bec9d4ec5d3240b1c518ff11bfd3d8a19d2354 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 24 Jul 2018 16:57:34 -0400 Subject: 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. --- server.c | 1 - 1 file changed, 1 deletion(-) 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)); -- cgit 1.4.1