Archived
Increase read timeout on HTTP server, try to not run out of sockets in stress test
This commit is contained in:
1 parent
9d36d88a65
commit
e0265aed05
2 files changed
+66
-35
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user