Reduce our patience with slow clients somewhat

This commit is contained in:
Jakob Borg 2015-11-06 11:20:28 +01:00
parent 0d1df6bec3
commit 5e04274d84

View File

@ -66,9 +66,9 @@ func (s *querysrv) Serve() {
s.listener = tlsListener
srv := &http.Server{
ReadTimeout: 30 * time.Second,
WriteTimeout: 10 * time.Second,
MaxHeaderBytes: 2 << 10,
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
MaxHeaderBytes: 1 << 10,
}
if err := srv.Serve(tlsListener); err != nil {