changeset 2577:6783a7c02990 jobs

keep_alive_timeout_ms for civetweb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 May 2018 08:54:56 +0200
parents a874bdbbfa11
children 055d7d4a823f
files Core/HttpServer/MongooseServer.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Wed May 09 17:57:21 2018 +0200
+++ b/Core/HttpServer/MongooseServer.cpp	Fri May 11 08:54:56 2018 +0200
@@ -969,6 +969,11 @@
         // https://groups.google.com/d/msg/orthanc-users/CKueKX0pJ9E/_UCbl8T-VjIJ
         "enable_keep_alive", (keepAlive_ ? "yes" : "no"),
 
+if ORTHANC_ENABLE_CIVETWEB == 1
+        // https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md#enable_keep_alive-no
+        "keep_alive_timeout_ms", (keepAlive_ ? "500" : "0"),
+#endif
+        
         // Set the SSL certificate, if any. This must be the last option.
         ssl_ ? "ssl_certificate" : NULL,
         certificate_.c_str(),