diff Plugins/Engine/PluginsHttpHandler.cpp @ 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 ba5c0908600c
children
line wrap: on
line diff
--- a/Plugins/Engine/PluginsHttpHandler.cpp	Tue Sep 02 15:56:36 2014 +0200
+++ b/Plugins/Engine/PluginsHttpHandler.cpp	Tue Sep 02 17:30:13 2014 +0200
@@ -478,7 +478,7 @@
     HttpHandler::ParseGetQuery(uri, getArguments, p.uri);
 
     StringHttpOutput stream;
-    HttpOutput http(stream);
+    HttpOutput http(stream, false /* no keep alive */);
 
     LOG(INFO) << "Plugin making REST GET call on URI " << p.uri;
 
@@ -511,7 +511,7 @@
     std::string body(p.body, p.bodySize);
 
     StringHttpOutput stream;
-    HttpOutput http(stream);
+    HttpOutput http(stream, false /* no keep alive */);
 
     HttpMethod method = (isPost ? HttpMethod_Post : HttpMethod_Put);
     LOG(INFO) << "Plugin making REST " << EnumerationToString(method) << " call on URI " << p.uri;
@@ -541,7 +541,7 @@
     std::string body;  // No body for DELETE
 
     StringHttpOutput stream;
-    HttpOutput http(stream);
+    HttpOutput http(stream, false /* no keep alive */);
 
     LOG(INFO) << "Plugin making REST DELETE call on URI " 
               << reinterpret_cast<const char*>(parameters);