|
|
@@ -3385,6 +3385,10 @@ func testTransportPingWhenReading(t *testing.T, readIdleTimeout, serverResponseI
|
|
|
|
|
|
ct.client = func() error {
|
|
|
defer ct.cc.(*net.TCPConn).CloseWrite()
|
|
|
+ if runtime.GOOS == "plan9" {
|
|
|
+ // CloseWrite not supported on Plan 9; Issue 17906
|
|
|
+ defer ct.cc.(*net.TCPConn).Close()
|
|
|
+ }
|
|
|
defer close(clientDone)
|
|
|
req, _ := http.NewRequest("GET", "https://dummy.tld/", nil)
|
|
|
res, err := ct.tr.RoundTrip(req)
|