Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeErrCh (0.13 sec)

  1. src/net/http/transport.go

    	readLimit int64 // bytes allowed to be read; owned by readLoop
    	// writeErrCh passes the request write error (usually nil)
    	// from the writeLoop goroutine to the readLoop which passes
    	// it off to the res.Body reader, which then uses it to decide
    	// whether or not a connection can be reused. Issue 7569.
    	writeErrCh chan error
    
    	writeLoopDone chan struct{} // closed when write loop ends
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	defer r.lock.Unlock()
    	return r.count
    }
    
    func newHandler(responseCh <-chan string, panicCh <-chan interface{}, writeErrCh chan<- error) http.HandlerFunc {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		select {
    		case resp := <-responseCh:
    			_, err := w.Write([]byte(resp))
    			writeErrCh <- err
    		case panicReason := <-panicCh:
    			panic(panicReason)
    		}
    	})
    }
    
    func TestTimeout(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top