From a1b43374388dc5c3a7925371dfb86aecf680374a Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 18 Oct 2017 23:41:03 +0200 Subject: [PATCH] Set keep_alive_timeout to 2, this way for single threaded case, browser does not wait too much to start the websocket connection. Set max_keep_alive_requests to -1, to allow unlimited number of requests within a same websocket connection. --- examples/websocket/ws.ini | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/examples/websocket/ws.ini b/examples/websocket/ws.ini index af39b45d..87dcb630 100644 --- a/examples/websocket/ws.ini +++ b/examples/websocket/ws.ini @@ -1,13 +1,20 @@ -verbose=true -verbose_level=INFORMATION port=9090 + +#Socket and timeout max_concurrent_connections=100 -keep_alive_timeout=2 -max_keep_alive_requests=-1 max_tcp_clients=100 socket_timeout=30 socket_recv_timeout=5 +#Persistent connections +keep_alive_timeout=2 +max_keep_alive_requests=-1 + +#SSL is_secure=false secure_certificate=ca.crt secure_certificate_key=ca.key + +#Debug +verbose=true +verbose_level=INFORMATION