set http.Server.ReadTimeout to 30*time.Second

This commit is contained in:
Ulric Qin 2021-09-04 19:48:11 +08:00
parent c63987d726
commit 0d19ec267f
1 changed files with 3 additions and 3 deletions

View File

@ -18,9 +18,9 @@ import (
)
var srv = &http.Server{
ReadTimeout: 10 * time.Second,
WriteTimeout: 10 * time.Second,
MaxHeaderBytes: 1 << 20,
ReadTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
MaxHeaderBytes: 1 << 30,
}
var skipPaths = []string{