mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
cmd/syncthing: Increase timeout in hello message exchange
Required to establish connections on high latency links Skip-check: authors GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3286
This commit is contained in:
parent
b4e2914b70
commit
11b9212948
@ -554,7 +554,7 @@ func (s *Service) getListenerFactory(cfg config.Configuration, uri *url.URL) (li
|
||||
}
|
||||
|
||||
func exchangeHello(c net.Conn, h protocol.HelloMessage) (protocol.HelloMessage, error) {
|
||||
if err := c.SetDeadline(time.Now().Add(2 * time.Second)); err != nil {
|
||||
if err := c.SetDeadline(time.Now().Add(20 * time.Second)); err != nil {
|
||||
return protocol.HelloMessage{}, err
|
||||
}
|
||||
defer c.SetDeadline(time.Time{})
|
||||
|
Loading…
Reference in New Issue
Block a user