Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for dialConn (0.14 sec)

  1. src/net/http/transport.go

    	}
    	q := t.connsPerHostWait[w.key]
    	q.cleanFrontNotWaiting()
    	q.pushBack(w)
    	t.connsPerHostWait[w.key] = q
    }
    
    // startDialConnFor calls dialConn in a new goroutine.
    // t.connsPerHostMu must be held.
    func (t *Transport) startDialConnForLocked(w *wantConn) {
    	t.dialsInProgress.cleanFrontCanceled()
    	t.dialsInProgress.pushBack(w)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    	}
    	if !reflect.DeepEqual(oe, want) {
    		t.Errorf("Got error %#v; want %#v", oe, want)
    	}
    }
    
    // Issue 36431: calls to RoundTrip should not mutate t.ProxyConnectHeader.
    //
    // (A bug caused dialConn to instead write the per-request Proxy-Authorization
    // header through to the shared Header instance, introducing a data race.)
    func TestTransportProxyDialDoesNotMutateProxyConnectHeader(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  3. src/net/timeout_test.go

    				// other test to see an unexpected extra connection.
    				defer func() {
    					cancel()
    					<-dialDone
    				}()
    
    				go func() {
    					defer close(dialDone)
    					d := Dialer{}
    					c, err := d.DialContext(ctx, ln.Addr().Network(), ln.Addr().String())
    					if err != nil {
    						// If the timing didn't work out, it is possible for this Dial
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
Back to top