comparison Core/HttpServer/MongooseServer.cpp @ 3136:f948deef53d9

using tcp_nodelay in civetweb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Jan 2019 16:26:44 +0100
parents 3db9697a0a58
children 5a3b961e9524
comparison
equal deleted inserted replaced
3135:2b81d44e7b33 3136:f948deef53d9
990 #if ORTHANC_ENABLE_CIVETWEB == 1 990 #if ORTHANC_ENABLE_CIVETWEB == 1
991 // https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md#enable_keep_alive-no 991 // https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md#enable_keep_alive-no
992 "keep_alive_timeout_ms", (keepAlive_ ? "500" : "0"), 992 "keep_alive_timeout_ms", (keepAlive_ ? "500" : "0"),
993 #endif 993 #endif
994 994
995 #if ORTHANC_ENABLE_CIVETWEB == 1
996 // Disable TCP Nagle's algorithm to maximize speed (this
997 // option is not available in Mongoose)
998 "tcp_nodelay", "1",
999 #endif
1000
995 // Set the number of threads 1001 // Set the number of threads
996 "num_threads", numThreads.c_str(), 1002 "num_threads", numThreads.c_str(),
997 1003
998 // Set the SSL certificate, if any. This must be the last option. 1004 // Set the SSL certificate, if any. This must be the last option.
999 ssl_ ? "ssl_certificate" : NULL, 1005 ssl_ ? "ssl_certificate" : NULL,