]> Cypherpunks repositories - gostls13.git/commit
net: slowDialTCP should wait forever if no deadline exists.
authorPaul Marks <pmarks@google.com>
Wed, 9 Mar 2016 22:49:39 +0000 (14:49 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 10 Mar 2016 15:24:44 +0000 (15:24 +0000)
commit92dfc12610853d48b7a67912c771cd813371365f
tree8807ca8c2ad05efe16aa8db4b286b2e8f96a549e
parentb4b2ddb86771753aebd4383847e708cb61e94c73
net: slowDialTCP should wait forever if no deadline exists.

This allows TestDialerFallbackDelay to pass again on machines where IPv6
connections to nowhere fail quickly instead of hanging.

This bug appeared last month, when I deleted the slowTimeout constant.

Updates #11225
Fixes #14731

Change-Id: I840011eee571aab1041022411541736111c7fad5
Reviewed-on: https://go-review.googlesource.com/20493
Run-TryBot: Paul Marks <pmarks@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
src/net/dial_test.go