Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addConnLocked (0.1 sec)

  1. src/net/http/h2_bundle.go

    	p.mu.Lock()
    	if err != nil {
    		c.err = err
    	} else {
    		cc.getConnCalled = true // already called by the net/http package
    		p.addConnLocked(key, cc)
    	}
    	delete(p.addConnCalls, key)
    	p.mu.Unlock()
    	close(c.done)
    }
    
    // p.mu must be held
    func (p *http2clientConnPool) addConnLocked(key string, cc *http2ClientConn) {
    	for _, v := range p.conns[key] {
    		if v == cc {
    			return
    		}
    	}
    	if p.conns == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top