]> Cypherpunks repositories - gostls13.git/commit
net: don't call forceCloseSockets in non-TestMain functions
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 27 May 2016 18:06:33 +0000 (03:06 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 30 May 2016 03:30:14 +0000 (03:30 +0000)
commitdc5b5239e8020ca0b366ba02f99fe87728fa290c
tree4a89cf4eaa0d05491c754ece9be6e38311c7c851
parent4e01c132d03ee1f862ae8ba9db465d6047f950f2
net: don't call forceCloseSockets in non-TestMain functions

forceCloseSockets is just designed as a kingston valve for TestMain
function and is not suitable to keep track of inflight sockets.

Fixes #15525.

Change-Id: Id967fe5b8da99bb08b699cc45e07bbc3dfc3ae3d
Reviewed-on: https://go-review.googlesource.com/23505
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/dial_test.go
src/net/main_plan9_test.go
src/net/main_unix_test.go
src/net/main_windows_test.go
src/net/timeout_test.go