server: fix to have readable timeout value (#1823)

This commit is contained in:
Bala FA 2016-06-01 21:44:50 +05:30 committed by Harshavardhana
parent 614c770b5d
commit 116b5607d7

View File

@ -82,8 +82,8 @@ func configureServer(srvCmdConfig serverCmdConfig) *http.Server {
apiServer := &http.Server{
Addr: srvCmdConfig.serverAddr,
// Adding timeout of 10 minutes for unresponsive client connections.
ReadTimeout: 600 * time.Second,
WriteTimeout: 600 * time.Second,
ReadTimeout: 10 * time.Minute,
WriteTimeout: 10 * time.Minute,
Handler: configureServerHandler(srvCmdConfig),
MaxHeaderBytes: 1 << 20,
}