mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28: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
|
s.listener = tlsListener
|
||||||
|
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
ReadTimeout: 30 * time.Second,
|
ReadTimeout: 5 * time.Second,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 5 * time.Second,
|
||||||
MaxHeaderBytes: 2 << 10,
|
MaxHeaderBytes: 1 << 10,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := srv.Serve(tlsListener); err != nil {
|
if err := srv.Serve(tlsListener); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user