fix: increase RW http server timeouts, since now we stream the content:
A download of 500MB on 40Mb/s could never finish
This commit is contained in:
parent
9532b70458
commit
c36275d07b
4
main.go
4
main.go
@ -361,8 +361,8 @@ func main() {
|
|||||||
|
|
||||||
wrappedHandler := NewLogger(handler)
|
wrappedHandler := NewLogger(handler)
|
||||||
srv := http.Server{
|
srv := http.Server{
|
||||||
ReadTimeout: 10 * time.Second,
|
ReadTimeout: 60 * time.Second,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 60 * time.Second,
|
||||||
Addr: ":" + DEFAULT_HTTP_PORT,
|
Addr: ":" + DEFAULT_HTTP_PORT,
|
||||||
Handler: wrappedHandler,
|
Handler: wrappedHandler,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user