Lower sanityCheckServer timeout to 15s

Should still be more than enough to connect even if the network is
somewhat flaky.

git-svn-id: file:///srv/svn/repo/suika/trunk@699 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-11-17 11:12:40 +00:00
parent e88bc359cf
commit c07a0ddcbe

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)