comparison OrthancFramework/Sources/HttpServer/HttpServer.h @ 5119:bdec57f3cbf2

New configuration KeepAliveTimeout with a default value of 1 second
author Alain Mazy <am@osimis.io>
date Wed, 14 Dec 2022 11:50:43 +0100
parents 43e613a7756b
children 0ea402b4d901
comparison
equal deleted inserted replaced
5118:030cd210845e 5119:bdec57f3cbf2
104 bool sslHasCiphers_; 104 bool sslHasCiphers_;
105 std::string sslCiphers_; 105 std::string sslCiphers_;
106 uint16_t port_; 106 uint16_t port_;
107 IIncomingHttpRequestFilter* filter_; 107 IIncomingHttpRequestFilter* filter_;
108 bool keepAlive_; 108 bool keepAlive_;
109 unsigned int keepAliveTimeout_;
109 bool httpCompression_; 110 bool httpCompression_;
110 IHttpExceptionFormatter* exceptionFormatter_; 111 IHttpExceptionFormatter* exceptionFormatter_;
111 std::string realm_; 112 std::string realm_;
112 unsigned int threadsCount_; 113 unsigned int threadsCount_;
113 bool tcpNoDelay_; 114 bool tcpNoDelay_;
155 156
156 void SetSslTrustedClientCertificates(const char* path); 157 void SetSslTrustedClientCertificates(const char* path);
157 158
158 bool IsKeepAliveEnabled() const; 159 bool IsKeepAliveEnabled() const;
159 160
161 unsigned int GetKeepAliveTimeout() const;
162
160 void SetKeepAliveEnabled(bool enabled); 163 void SetKeepAliveEnabled(bool enabled);
164
165 void SetKeepAliveTimeout(unsigned int timeout);
161 166
162 const std::string& GetSslCertificate() const; 167 const std::string& GetSslCertificate() const;
163 168
164 void SetSslCertificate(const char* path); 169 void SetSslCertificate(const char* path);
165 170