Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 golang#11225 is the root cause of the socket leak; this just hides it from the unit test by restoring the shorter timeout. Fixes golang#11878 Change-Id: Ie0037dd3bce6cc81d196765375489f8c61be74c2 Reviewed-on: https://go-review.googlesource.com/12712 Reviewed-by: Russ Cox <[email protected]> Run-TryBot: Paul Marks <[email protected]>
- Loading branch information