Commit 3add0fef authored by Rémy Oudompheng's avatar Rémy Oudompheng

net/http: deflake BenchmarkServerFakeConnNoKeepAlive.

Fixes #5121.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7814046
parent 2f2f9fef
......@@ -1635,7 +1635,9 @@ Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
res := []byte("Hello world!\n")
conn := &testConn{
closec: make(chan bool),
// testConn.Close will not push into the channel
// if it's full.
closec: make(chan bool, 1),
}
handler := HandlerFunc(func(rw ResponseWriter, r *Request) {
rw.Header().Set("Content-Type", "text/html; charset=utf-8")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment