Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wantCode (0.2 sec)

  1. src/net/http/transport_dial_test.go

    	dt := newTransportDialTester(t, http1Mode)
    
    	// First request creates a new connection.
    	rt1 := dt.roundTrip()
    	c1 := dt.wantDial()
    	c1.finish(nil)
    	rt1.wantDone(c1)
    	rt1.finish()
    
    	// Second request reuses the first connection.
    	rt2 := dt.roundTrip()
    	rt2.wantDone(c1)
    	rt2.finish()
    }
    
    func TestTransportPoolConnCannotReuseConnectionInUse(t *testing.T) {
    	dt := newTransportDialTester(t, http1Mode)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top