mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Reduce our patience with slow clients somewhat
This commit is contained in:
parent
0d1df6bec3
commit
5e04274d84
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user