]> Cypherpunks repositories - gostls13.git/commit
net: dialChannel should not treat an expired deadline as noDeadline.
authorPaul Marks <pmarks@google.com>
Fri, 3 Apr 2015 02:13:17 +0000 (19:13 -0700)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 6 Apr 2015 01:03:31 +0000 (01:03 +0000)
commitc50a8416c851ab6897f9efcd932ac26b5862dcad
tree89f9759902652203a785b99cd7948cc40366cff0
parent5242d2cef42c890f94194c65e0f19761bae813b2
net: dialChannel should not treat an expired deadline as noDeadline.

Now, only a zero deadline is interpreted as noDeadline.  Any other time
in the past yields an immediate timeout.

TestConnectDeadlineInThePast already covers this case.  We just need to
un-skip it for plan9, where dialChannel is used.

Change-Id: I995fd1a632c31f8004dac772c3d7c43a2a5853b0
Reviewed-on: https://go-review.googlesource.com/8435
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
src/net/dial_gen.go
src/net/timeout_test.go