diff --git a/cmd/derper/derper.go b/cmd/derper/derper.go index 0982335f1..2854ca586 100644 --- a/cmd/derper/derper.go +++ b/cmd/derper/derper.go @@ -119,6 +119,7 @@ func main() { letsEncrypt := tsweb.IsProd443(*addr) s := derp.NewServer(key.Private(cfg.PrivateKey), log.Printf) + s.WriteTimeout = 2 * time.Second if *mbps != 0 { s.BytesPerSecond = (*mbps << 20) / 8 }