Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for delayedFlush (0.2 sec)

  1. src/net/http/httputil/reverseproxy.go

    		m.flush()
    		return
    	}
    	if m.flushPending {
    		return
    	}
    	if m.t == nil {
    		m.t = time.AfterFunc(m.latency, m.delayedFlush)
    	} else {
    		m.t.Reset(m.latency)
    	}
    	m.flushPending = true
    	return
    }
    
    func (m *maxLatencyWriter) delayedFlush() {
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	if !m.flushPending { // if stop was called but AfterFunc already started this goroutine
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 23:37:42 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top