]> Cypherpunks repositories - gostls13.git/commit
net/http/httptest: protect against port reuse
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 25 Nov 2012 23:23:20 +0000 (15:23 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 25 Nov 2012 23:23:20 +0000 (15:23 -0800)
commitf97bb12bb02b1a5dd0e36032c8079e019fef9d54
tree3737b1621fbfa672fd66ca31ac7d1fdafd7dc4fb
parentc8fa7dcc25cc7655abf55b541149ad248c9830f2
net/http/httptest: protect against port reuse

Should make BSDs more reliable. (they seem to reuse ports
quicker than Linux)

Tested by hand with local modifications to force reuse on
Linux. (net/http tests failed before, pass now) Details in the
issue.

Fixes #4436

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/6847101
src/pkg/net/http/httptest/server.go