# HG changeset patch # User Sebastien Jodogne # Date 1547738804 -3600 # Node ID f948deef53d9b14774381c31e71e8273e4463f38 # Parent 2b81d44e7b339a1ff23b3606965766af8f0796fc using tcp_nodelay in civetweb diff -r 2b81d44e7b33 -r f948deef53d9 Core/HttpServer/MongooseServer.cpp --- 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(),