Lower sanityCheckServer timeout to 15s
Should still be more than enough to connect even if the network is somewhat flaky.
This commit is contained in:
parent
47c8ec5238
commit
06ce0b8da9
@ -1031,7 +1031,7 @@ func (dc *downstreamConn) updateRealname() {
|
||||
}
|
||||
|
||||
func sanityCheckServer(ctx context.Context, addr string) error {
|
||||
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 15*time.Second)
|
||||
defer cancel()
|
||||
|
||||
conn, err := new(tls.Dialer).DialContext(ctx, "tcp", addr)
|
||||
|
Loading…
Reference in New Issue
Block a user