Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 3126:b1787ba94eef
fix issue #32 (HTTP keep-alive), make CivetWeb the default HTTP server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Jan 2019 09:52:05 +0100 |
parents | fa5ad4368fe3 |
children | e678a2b1a25b 2b81d44e7b33 |
comparison
equal
deleted
inserted
replaced
3123:58ea4ef84c92 | 3126:b1787ba94eef |
---|---|
807 | 807 |
808 // HTTP server | 808 // HTTP server |
809 //httpServer.SetThreadsCount(50); | 809 //httpServer.SetThreadsCount(50); |
810 httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042)); | 810 httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042)); |
811 httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false)); | 811 httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false)); |
812 httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", false)); | 812 httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", true)); |
813 httpServer.SetHttpCompressionEnabled(lock.GetConfiguration().GetBooleanParameter("HttpCompressionEnabled", true)); | 813 httpServer.SetHttpCompressionEnabled(lock.GetConfiguration().GetBooleanParameter("HttpCompressionEnabled", true)); |
814 httpServer.SetAuthenticationEnabled(lock.GetConfiguration().GetBooleanParameter("AuthenticationEnabled", false)); | 814 httpServer.SetAuthenticationEnabled(lock.GetConfiguration().GetBooleanParameter("AuthenticationEnabled", false)); |
815 | 815 |
816 lock.GetConfiguration().SetupRegisteredUsers(httpServer); | 816 lock.GetConfiguration().SetupRegisteredUsers(httpServer); |
817 | 817 |