зеркало из https://github.com/golang/appengine.git
internal: Increase limitDial timeout from 500ms to 10s (#210)
Increase internal.limitDial's timeout from 500ms to 10s, to account for differences in the go111 legacy API endpoint.
This commit is contained in:
Родитель
5f2a595063
Коммит
c71d63e301
|
@ -32,7 +32,7 @@ func limitDial(network, addr string) (net.Conn, error) {
|
|||
|
||||
// Dial with a timeout in case the API host is MIA.
|
||||
// The connection should normally be very fast.
|
||||
conn, err := net.DialTimeout(network, addr, 500*time.Millisecond)
|
||||
conn, err := net.DialTimeout(network, addr, 10*time.Second)
|
||||
if err != nil {
|
||||
limitRelease()
|
||||
return nil, err
|
||||
|
|
Загрузка…
Ссылка в новой задаче