fix: correct timeouts according to spec

This commit is contained in:
James Houlahan
2020-04-29 13:45:50 +02:00
committed by Michal Horejsek
parent 68d2591c73
commit 2db1b113e0
3 changed files with 9 additions and 5 deletions

View File

@ -42,7 +42,7 @@ func NewBasicTLSDialer() *BasicTLSDialer {
// DialTLS returns a connection to the given address using the given network.
func (b *BasicTLSDialer) DialTLS(network, address string) (conn net.Conn, err error) {
dialer := &net.Dialer{Timeout: 10 * time.Second}
dialer := &net.Dialer{Timeout: 30 * time.Second} // Alternative Routes spec says this should be a 30s timeout.
var tlsConfig *tls.Config = nil