Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 3537:9cc09f4c0fa9
New configuration option: "HttpRequestTimeout"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Oct 2019 13:16:15 +0200 |
parents | 41365091a41e |
children | e327b44780bb 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3536:8be5451f6820 | 3537:9cc09f4c0fa9 |
---|---|
821 httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042)); | 821 httpServer.SetPortNumber(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpPort", 8042)); |
822 httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false)); | 822 httpServer.SetRemoteAccessAllowed(lock.GetConfiguration().GetBooleanParameter("RemoteAccessAllowed", false)); |
823 httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", defaultKeepAlive)); | 823 httpServer.SetKeepAliveEnabled(lock.GetConfiguration().GetBooleanParameter("KeepAlive", defaultKeepAlive)); |
824 httpServer.SetHttpCompressionEnabled(lock.GetConfiguration().GetBooleanParameter("HttpCompressionEnabled", true)); | 824 httpServer.SetHttpCompressionEnabled(lock.GetConfiguration().GetBooleanParameter("HttpCompressionEnabled", true)); |
825 httpServer.SetTcpNoDelay(lock.GetConfiguration().GetBooleanParameter("TcpNoDelay", true)); | 825 httpServer.SetTcpNoDelay(lock.GetConfiguration().GetBooleanParameter("TcpNoDelay", true)); |
826 httpServer.SetRequestTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpRequestTimeout", 30)); | |
826 | 827 |
827 // Let's assume that the HTTP server is secure | 828 // Let's assume that the HTTP server is secure |
828 context.SetHttpServerSecure(true); | 829 context.SetHttpServerSecure(true); |
829 | 830 |
830 bool authenticationEnabled; | 831 bool authenticationEnabled; |