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:
Simon Ser 2021-11-17 12:12:40 +01:00
parent 47c8ec5238
commit 06ce0b8da9

View File

@ -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)