|
|
@ -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, |
|
|
|
} |
|
|
|
} |
|
|
|