Increase HTTP timeout
We have some clients that are on slow connections that have trouble uploading large images due to timeout, and receive a “Guru Meditation” from Varnish that it could not fetch.
This commit is contained in:
parent
365fed55b1
commit
75e0d8e197
|
@ -36,8 +36,8 @@ func main() {
|
||||||
srv := http.Server{
|
srv := http.Server{
|
||||||
Addr: ":8080",
|
Addr: ":8080",
|
||||||
Handler: handler,
|
Handler: handler,
|
||||||
ReadTimeout: 5 * time.Second,
|
ReadTimeout: 60 * time.Second,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 60 * time.Second,
|
||||||
IdleTimeout: 2 * time.Minute,
|
IdleTimeout: 2 * time.Minute,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue