Mercurial > hg > orthanc
comparison Core/HttpServer/HttpServer.h @ 3537:9cc09f4c0fa9
New configuration option: "HttpRequestTimeout"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 13:16:15 +0200 |
parents | ab46e537f92e |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3536:8be5451f6820 | 3537:9cc09f4c0fa9 |
---|---|
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 bool tcpNoDelay_; |
101 unsigned int requestTimeout_; // In seconds | |
101 | 102 |
102 bool IsRunning() const; | 103 bool IsRunning() const; |
103 | 104 |
104 public: | 105 public: |
105 HttpServer(); | 106 HttpServer(); |
213 | 214 |
214 bool IsTcpNoDelay() const | 215 bool IsTcpNoDelay() const |
215 { | 216 { |
216 return tcpNoDelay_; | 217 return tcpNoDelay_; |
217 } | 218 } |
219 | |
220 void SetRequestTimeout(unsigned int seconds); | |
221 | |
222 unsigned int GetRequestTimeout() const | |
223 { | |
224 return requestTimeout_; | |
225 } | |
218 }; | 226 }; |
219 } | 227 } |