Skip to content
Snippets Groups Projects
Verified Commit 8f1fc6e5 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

daemon/io: extend logging for TCP Fast Open failure

In FreeBSD it's disabled by default, causing this error.
I tried disabling it on Linux via sysctl, but that didn't seem
to cause any errors.
parent 007c0ed7
No related branches found
No related tags found
1 merge request!949FreeBSD-related improvements
......@@ -440,7 +440,9 @@ int io_listen_tcp(uv_loop_t *loop, uv_tcp_t *handle, int fd, int tcp_backlog, bo
val = 1; /* Accepts on/off */
#endif
if (setsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN, &val, sizeof(val))) {
kr_log_error("[ io ] listen TCP (fastopen): %s\n", strerror(errno));
kr_log_error("[ io ] listen TCP (fastopen): %s%s\n", strerror(errno),
(errno != EPERM ? "" :
". This may be caused by TCP Fast Open being disabled in the OS."));
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment