comparison Core/HttpServer/MongooseServer.cpp @ 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 878b59270859
children 010577b52f5f
comparison
equal deleted inserted replaced
2575:a874bdbbfa11 2577:6783a7c02990
967 967
968 // Optimization reported by Chris Hafey 968 // Optimization reported by Chris Hafey
969 // https://groups.google.com/d/msg/orthanc-users/CKueKX0pJ9E/_UCbl8T-VjIJ 969 // https://groups.google.com/d/msg/orthanc-users/CKueKX0pJ9E/_UCbl8T-VjIJ
970 "enable_keep_alive", (keepAlive_ ? "yes" : "no"), 970 "enable_keep_alive", (keepAlive_ ? "yes" : "no"),
971 971
972 if ORTHANC_ENABLE_CIVETWEB == 1
973 // https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md#enable_keep_alive-no
974 "keep_alive_timeout_ms", (keepAlive_ ? "500" : "0"),
975 #endif
976
972 // Set the SSL certificate, if any. This must be the last option. 977 // Set the SSL certificate, if any. This must be the last option.
973 ssl_ ? "ssl_certificate" : NULL, 978 ssl_ ? "ssl_certificate" : NULL,
974 certificate_.c_str(), 979 certificate_.c_str(),
975 NULL 980 NULL
976 }; 981 };