comparison OrthancServer/main.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 bec1eccf976c
children 790ff7a5b3bf
comparison
equal deleted inserted replaced
1114:adfd2c7a92f3 1115:da56a7916e8a
367 // HTTP server 367 // HTTP server
368 MyIncomingHttpRequestFilter httpFilter(context); 368 MyIncomingHttpRequestFilter httpFilter(context);
369 MongooseServer httpServer; 369 MongooseServer httpServer;
370 httpServer.SetPortNumber(Configuration::GetGlobalIntegerParameter("HttpPort", 8042)); 370 httpServer.SetPortNumber(Configuration::GetGlobalIntegerParameter("HttpPort", 8042));
371 httpServer.SetRemoteAccessAllowed(Configuration::GetGlobalBoolParameter("RemoteAccessAllowed", false)); 371 httpServer.SetRemoteAccessAllowed(Configuration::GetGlobalBoolParameter("RemoteAccessAllowed", false));
372 httpServer.SetKeepAliveEnabled(Configuration::GetGlobalBoolParameter("KeepAlive", false));
372 httpServer.SetIncomingHttpRequestFilter(httpFilter); 373 httpServer.SetIncomingHttpRequestFilter(httpFilter);
373 374
374 httpServer.SetAuthenticationEnabled(Configuration::GetGlobalBoolParameter("AuthenticationEnabled", false)); 375 httpServer.SetAuthenticationEnabled(Configuration::GetGlobalBoolParameter("AuthenticationEnabled", false));
375 Configuration::SetupRegisteredUsers(httpServer); 376 Configuration::SetupRegisteredUsers(httpServer);
376 377