]> Cypherpunks repositories - gostls13.git/commit
net: evaluate the timeout dial opt's deadline at dial time
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Mar 2013 02:14:00 +0000 (18:14 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Mar 2013 02:14:00 +0000 (18:14 -0800)
commit8d51c330122a88a7f6644580c6907ca634357f16
tree48a54530312b41eb82bd8a5b914bf1cfdcb950c7
parenta8e55f8858da7e79ba3aafbde61a7326b411b3fe
net: evaluate the timeout dial opt's deadline at dial time

Previously it was evaluated once, so re-using the timeout option
repeatedly would always generate the same deadine.

Also switch to doing just one pass over the options, making
the private interface actually useful.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/7608045
src/pkg/net/dial.go