From fa54d1df90aeee1953bbfc5c23a4f3796a27c8ed Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 13 Dec 2017 16:24:59 +0100 Subject: enable TCP fastopen option --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2