comparison Core/HttpServer/MongooseServer.h @ 3137:5a3b961e9524

New configuration option: 'TcpNoDelay' to disable Nagle's algorithm in HTTP server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Jan 2019 18:24:23 +0100
parents 4e43e67f8ecf
children
comparison
equal deleted inserted replaced
3136:f948deef53d9 3137:5a3b961e9524
95 bool keepAlive_; 95 bool keepAlive_;
96 bool httpCompression_; 96 bool httpCompression_;
97 IHttpExceptionFormatter* exceptionFormatter_; 97 IHttpExceptionFormatter* exceptionFormatter_;
98 std::string realm_; 98 std::string realm_;
99 unsigned int threadsCount_; 99 unsigned int threadsCount_;
100 bool tcpNoDelay_;
100 101
101 bool IsRunning() const; 102 bool IsRunning() const;
102 103
103 public: 104 public:
104 MongooseServer(); 105 MongooseServer();
204 205
205 unsigned int GetThreadsCount() const 206 unsigned int GetThreadsCount() const
206 { 207 {
207 return threadsCount_; 208 return threadsCount_;
208 } 209 }
210
211 // New in Orthanc 1.5.2, not available for Mongoose
212 void SetTcpNoDelay(bool tcpNoDelay);
213
214 bool IsTcpNoDelay() const
215 {
216 return tcpNoDelay_;
217 }
209 }; 218 };
210 } 219 }