diff options
author | Christian Hesse <mail@eworm.de> | 2017-12-13 16:24:59 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-12-13 16:24:59 +0100 |
commit | fa54d1df90aeee1953bbfc5c23a4f3796a27c8ed (patch) | |
tree | afed53d30195f9183c595790c1df3a0979cf2fd2 | |
parent | 0d9edcb6f67b1cd74bf5ae8ec9cdc7af1259960c (diff) | |
download | pacredir-fa54d1df90aeee1953bbfc5c23a4f3796a27c8ed.tar.gz pacredir-fa54d1df90aeee1953bbfc5c23a4f3796a27c8ed.tar.zst |
enable TCP fastopen option
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |