mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: make TestDialTimeoutFDLeak a bit robust
TestDialTimeoutFDLeak will fail when system state somaxconn is greater than expected fixed value. Fixes #4384 (again). R=fullung, dave, rsc CC=golang-dev https://golang.org/cl/6873069
This commit is contained in:
parent
b978995f5d
commit
feb509c794
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ func TestDialTimeoutFDLeak(t *testing.T) {
|
|||
}
|
||||
dials := listenerBacklog + 100
|
||||
// used to be listenerBacklog + 5, but was found to be unreliable, issue 4384.
|
||||
maxGoodConnect := 150
|
||||
maxGoodConnect := listenerBacklog + runtime.NumCPU()*10
|
||||
resc := make(chan connErr)
|
||||
for i := 0; i < dials; i++ {
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue