- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeErrCh (0.1 sec)
-
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) -
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)