# HG changeset patch # User Sebastien Jodogne # Date 1526021696 -7200 # Node ID 6783a7c02990029e2fa1534333186b4bb5bb2992 # Parent a874bdbbfa11dd8b2ac93e4f2a9e4af1505b8083 keep_alive_timeout_ms for civetweb diff -r a874bdbbfa11 -r 6783a7c02990 Core/HttpServer/MongooseServer.cpp --- 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(),