diff options
author | June McEnroe <june@causal.agency> | 2020-05-15 10:07:14 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-18 14:30:21 -0400 |
commit | 1e52d207aca21c8fa39f99fdf3ce559af6370ae2 (patch) | |
tree | acee50a73d022e910ab1e622ed84988aaaeb0f16 /compat.h | |
parent | Add server send queueing with time interval (diff) | |
download | pounce-1e52d207aca21c8fa39f99fdf3ce559af6370ae2.tar.gz pounce-1e52d207aca21c8fa39f99fdf3ce559af6370ae2.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |