diff Core/HttpServer/MongooseServer.h @ 1115:da56a7916e8a

Experimental "KeepAlive" configuration option to enable HTTP Keep-Alive
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Sep 2014 17:30:13 +0200
parents 7d88f3f4a3b3
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.h	Tue Sep 02 15:56:36 2014 +0200
+++ b/Core/HttpServer/MongooseServer.h	Tue Sep 02 17:30:13 2014 +0200
@@ -78,6 +78,7 @@
     std::string certificate_;
     uint16_t port_;
     IIncomingHttpRequestFilter* filter_;
+    bool keepAlive_;
   
     bool IsRunning() const;
 
@@ -118,6 +119,13 @@
 
     void SetSslEnabled(bool enabled);
 
+    bool IsKeepAliveEnabled() const
+    {
+      return keepAlive_;
+    }
+
+    void SetKeepAliveEnabled(bool enabled);
+
     const std::string& GetSslCertificate() const
     {
       return certificate_;