Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for startDialConnForLocked (0.21 sec)

  1. src/net/http/transport.go

    	defer t.connsPerHostMu.Unlock()
    
    	if t.MaxConnsPerHost <= 0 {
    		t.startDialConnForLocked(w)
    		return
    	}
    
    	if n := t.connsPerHost[w.key]; n < t.MaxConnsPerHost {
    		if t.connsPerHost == nil {
    			t.connsPerHost = make(map[connectMethodKey]int)
    		}
    		t.connsPerHost[w.key] = n + 1
    		t.startDialConnForLocked(w)
    		return
    	}
    
    	if t.connsPerHostWait == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top