Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ResponseWriterConnForTesting (0.25 sec)

  1. src/net/http/transport_test.go

    	w.Write([]byte(r.RemoteAddr))
    
    	// Include the address of the net.Conn in addition to the RemoteAddr,
    	// in case kernels reuse source ports quickly (see Issue 52450)
    	if c, ok := ResponseWriterConnForTesting(w); ok {
    		fmt.Fprintf(w, ", %T %p", c, c)
    	}
    })
    
    // testCloseConn is a net.Conn tracked by a testConnSet.
    type testCloseConn struct {
    	net.Conn
    	set *testConnSet
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top