Mercurial > hg > orthanc
changeset 3136:f948deef53d9
using tcp_nodelay in civetweb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Jan 2019 16:26:44 +0100 |
parents | 2b81d44e7b33 |
children | 5a3b961e9524 |
files | Core/HttpServer/MongooseServer.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp Wed Jan 16 16:32:11 2019 +0100 +++ b/Core/HttpServer/MongooseServer.cpp Thu Jan 17 16:26:44 2019 +0100 @@ -992,6 +992,12 @@ "keep_alive_timeout_ms", (keepAlive_ ? "500" : "0"), #endif +#if ORTHANC_ENABLE_CIVETWEB == 1 + // Disable TCP Nagle's algorithm to maximize speed (this + // option is not available in Mongoose) + "tcp_nodelay", "1", +#endif + // Set the number of threads "num_threads", numThreads.c_str(),