1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

Relax web server timeouts.

This commit is contained in:
Juliusz Chroboczek 2020-05-31 16:49:54 +02:00
parent 57e08201ab
commit 8472f9bf0b

View file

@ -30,10 +30,9 @@ func webserver() {
go func() {
server := &http.Server{
Addr: httpAddr,
ReadTimeout: 60 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 120 * time.Second,
Addr: httpAddr,
ReadHeaderTimeout: 60 * time.Second,
IdleTimeout: 120 * time.Second,
}
var err error
err = server.ListenAndServeTLS(