1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:01:22 -06:00
go/src/pkg/net/http/httptest
Brad Fitzpatrick f97bb12bb0 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
2012-11-25 15:23:20 -08:00
..
recorder_test.go net/http/httptest: mimic the normal HTTP server's ResponseWriter more closely 2012-10-07 09:48:14 -07:00
recorder.go net/http/httptest: mimic the normal HTTP server's ResponseWriter more closely 2012-10-07 09:48:14 -07:00
server_test.go net/http/httptest: add a test 2012-02-09 16:45:24 +11:00
server.go net/http/httptest: protect against port reuse 2012-11-25 15:23:20 -08:00