about summary refs log tree commit diff homepage
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
commitf4da47cb0ee659472b563b9e6443663c62a69996 (patch)
tree97eb0deca871b9a177308da354a4472b000981d6
parentUse EV_SET (diff)
downloadtorus-f4da47cb0ee659472b563b9e6443663c62a69996.tar.gz
torus-f4da47cb0ee659472b563b9e6443663c62a69996.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.
-rw-r--r--server.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/server.c b/server.c
index 89ba03c..f34c802 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));
msg'> Tags are much better for referring to specific parts of a file and line numbering is better done by a post-processing tool such as cat -n or producing a two-column HTML <table>. 2019-02-18Add Tag class to hiJune McEnroe 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe Running hi twice to insert stuff between the head and the content is a bit of a hack but oh well. 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe