Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dialConn (0.12 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)
Back to top