Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for idleConnWait (0.35 sec)

  1. src/net/http/export_test.go

    		if k.String() == cacheKey {
    			return len(conns)
    		}
    	}
    	return 0
    }
    
    func (t *Transport) IdleConnWaitMapSizeForTesting() int {
    	t.idleMu.Lock()
    	defer t.idleMu.Unlock()
    	return len(t.idleConnWait)
    }
    
    func (t *Transport) IsIdleForTesting() bool {
    	t.idleMu.Lock()
    	defer t.idleMu.Unlock()
    	return t.closeIdle
    }
    
    func (t *Transport) QueueForIdleConnForTesting() {
    	t.queueForIdleConn(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/net/http/transport.go

    		if stop {
    			return delivered
    		}
    	}
    
    	// Register to receive next connection that becomes idle.
    	if t.idleConnWait == nil {
    		t.idleConnWait = make(map[connectMethodKey]wantConnQueue)
    	}
    	q := t.idleConnWait[w.key]
    	q.cleanFrontNotWaiting()
    	q.pushBack(w)
    	t.idleConnWait[w.key] = q
    	return false
    }
    
    // removeIdleConn marks pconn as dead.
    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