]> Cypherpunks repositories - gostls13.git/commit
net: Set finalDeadline from TestDialParallel to avoid leaked sockets.
authorPaul Marks <pmarks@google.com>
Mon, 27 Jul 2015 21:39:32 +0000 (14:39 -0700)
committerPaul Marks <pmarks@google.com>
Tue, 28 Jul 2015 05:04:36 +0000 (05:04 +0000)
commit85a5fce7adfcd45dafd7303a174608ba0a97a1c7
tree1caa8ddd0cd6083bbaf79ca120dc0034bf4b4da2
parent669f5be2ac6f761f8c917baa2ba899ed7f64bc14
net: Set finalDeadline from TestDialParallel to avoid leaked sockets.

I've also changed TestDialSerialAsyncSpuriousConnection for consistency,
although it always computes a finalDeadline of zero.

Note that #11225 is the root cause of the socket leak; this just hides
it from the unit test by restoring the shorter timeout.

Fixes #11878

Change-Id: Ie0037dd3bce6cc81d196765375489f8c61be74c2
Reviewed-on: https://go-review.googlesource.com/12712
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Paul Marks <pmarks@google.com>
src/net/dial_test.go