aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/trace/trace_stack_test.go
diff options
context:
space:
mode:
authorPaul Marks <pmarks@google.com>2015-07-20 16:04:25 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2015-07-23 01:19:12 +0000
commitdcc905ecf9f00c55fbc9848c45f62d677cb9bf29 (patch)
tree906bc7604ea3a5a3522c805b7192565dc91938a3 /src/runtime/trace/trace_stack_test.go
parent92390e47d81713d13b0d9890bf8b153f142a5b8a (diff)
downloadgo-dcc905ecf9f00c55fbc9848c45f62d677cb9bf29.tar.xz
net: compute the Dialer deadline exactly once.
When dialing with a relative Timeout instead of an absolute Deadline, the deadline function only makes sense if called before doing any time-consuming work. This change calls deadline exactly once, storing the result until the Dial operation completes. The partialDeadline implementation is reverted to the following patch set 3: https://go-review.googlesource.com/#/c/8768/3..4/src/net/dial.go Otherwise, when dialing a name with multiple IP addresses, or when DNS is slow, the recomputed deadline causes the total Timeout to exceed that requested by the user. Fixes #11796 Change-Id: I5e1f0d545f9e86a4e0e2ac31a9bd108849cf0fdf Reviewed-on: https://go-review.googlesource.com/12442 Run-TryBot: Paul Marks <pmarks@google.com> Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/trace/trace_stack_test.go')
0 files changed, 0 insertions, 0 deletions