diff 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
line wrap: on
line diff
--- a/Core/HttpServer/HttpServer.h	Sun Oct 06 09:54:30 2019 +0200
+++ b/Core/HttpServer/HttpServer.h	Thu Oct 10 13:16:15 2019 +0200
@@ -98,6 +98,7 @@
     std::string realm_;
     unsigned int threadsCount_;
     bool tcpNoDelay_;
+    unsigned int requestTimeout_;  // In seconds
   
     bool IsRunning() const;
 
@@ -215,5 +216,12 @@
     {
       return tcpNoDelay_;
     }
+
+    void SetRequestTimeout(unsigned int seconds);
+
+    unsigned int GetRequestTimeout() const
+    {
+      return requestTimeout_;
+    }
   };
 }