From 1e52d207aca21c8fa39f99fdf3ce559af6370ae2 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 15 May 2020 10:07:14 -0400 Subject: Enable TCP keepalive with half-hour idle Since we swallow IRC PINGs, a client connection can go hours idle on a quiet network. On my home internet, at least, these connections seem to get silently dropped. --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index d471a8f..01ef10c 100644 --- a/compat.h +++ b/compat.h @@ -35,3 +35,7 @@ uint32_t arc4random_uniform(uint32_t upper_bound); #ifndef SIGINFO #define SIGINFO SIGUSR2 #endif + +#ifdef __APPLE__ +#define TCP_KEEPIDLE TCP_KEEPALIVE +#endif -- cgit 1.4.1 option value='ansi'>ansi collaborative ASCII art
about summary refs log tree commit diff homepage
path: root/torus.h (unfollow)
Commit message (Expand)Author
2019-04-08Don't install rc.kfcgi eitherJune McEnroe
2019-03-28Remove rc.kfcgiJune McEnroe
2019-01-16Reformat index.html with explore linkJune McEnroe
2019-01-16Return false from keydown handler in exploreJune McEnroe
2019-01-08Draw lines to tile edgeJune McEnroe
2019-01-08Factor out default pathsJune McEnroe
2019-01-08Remove incorrect default coordinatesJune McEnroe
2019-01-07Set img src when explore fragment changesJune McEnroe
2019-01-07Compress PNG data in imageJune McEnroe
2019-01-07madvise MADV_NOCORE in imageJune McEnroe
2019-01-07Add license notice to explore JavaScriptJune McEnroe
2019-01-07Add Q/Home binding in exploreJune McEnroe
2019-01-07Fix explore image URLJune McEnroe
2019-01-07Add HOME button, ssh link, AGPL notice to exploreJune McEnroe
2019-01-06Add meta viewport to exploreJune McEnroe
2019-01-06Set background and max-width in exploreJune McEnroe
2019-01-06Swallow writes after the connection is closedJune McEnroe
2019-01-06Handle KCGI_HUPJune McEnroe
2019-01-06Install html filesJune McEnroe