summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-12-13 16:24:59 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-12-13 16:24:59 +0100
commitfa54d1df90aeee1953bbfc5c23a4f3796a27c8ed (patch)
treeafed53d30195f9183c595790c1df3a0979cf2fd2
parent0d9edcb6f67b1cd74bf5ae8ec9cdc7af1259960c (diff)
downloadpacredir-fa54d1df90aeee1953bbfc5c23a4f3796a27c8ed.tar.gz
pacredir-fa54d1df90aeee1953bbfc5c23a4f3796a27c8ed.tar.zst
enable TCP fastopen option
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index b74c59e..06eab0a 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -813,7 +813,7 @@ int main(int argc, char ** argv) {
inet_pton(AF_INET, "127.0.0.1", &address.sin_addr);
/* start http server */
- if ((mhd = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, PORT_PACREDIR,
+ if ((mhd = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_TCP_FASTOPEN, PORT_PACREDIR,
NULL, NULL, &ahc_echo, NULL, MHD_OPTION_SOCK_ADDR, &address, MHD_OPTION_END)) == NULL) {
write_log(stderr, "Could not start daemon on port %d.\n", PORT_PACREDIR);
goto fail;