Increase read timeout on HTTP server, try to not run out of sockets in stress test

This commit is contained in:
Jakob Borg
2014-11-30 10:35:04 +01:00
parent 9d36d88a65
commit e0265aed05
2 changed files with 66 additions and 35 deletions

View File

@@ -158,7 +158,7 @@ func startGUI(cfg config.GUIConfiguration, assetDir string, m *model.Model) erro
srv := http.Server{
Handler: handler,
ReadTimeout: 2 * time.Second,
ReadTimeout: 10 * time.Second,
}
go func() {