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

master
Bala FA 9 years ago committed by Harshavardhana
parent 614c770b5d
commit 116b5607d7
  1. 4
      server-main.go

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

Loading…
Cancel
Save