# HG changeset patch # User Sebastien Jodogne # Date 1526021734 -7200 # Node ID 174618206d2b3ec54e4fbbeaf960a259316d5324 # Parent 4555a8ef2e88edc91364816fb41d8403fe7bb7e7 keep_alive_timeout_ms for civetweb diff -r 4555a8ef2e88 -r 174618206d2b Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Fri May 11 08:37:32 2018 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Fri May 11 08:55:34 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(),