- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for errDeadlineExceeded (0.28 sec)
-
src/os/os_test.go
} } // isDeadlineExceeded reports whether err is or wraps ErrDeadlineExceeded. // We also check that the error has a Timeout method that returns true. func isDeadlineExceeded(err error) bool { if !IsTimeout(err) { return false } if !errors.Is(err, ErrDeadlineExceeded) { return false } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/net/http/serve_test.go
cst := newClientServerTest(t, mode, HandlerFunc(func(res ResponseWriter, req *Request) { _, err := io.Copy(io.Discard, req.Body) if !errors.Is(err, os.ErrDeadlineExceeded) { t.Errorf("server timed out reading request body: got err %v; want os.ErrDeadlineExceeded", err) } res.Write([]byte(respBody)) }), func(ts *httptest.Server) { ts.Config.ReadHeaderTimeout = -1 // don't time out while reading headers
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
cmd/api-errors.go
if err == nil { return ErrNone } // Errors that are generated by net.Conn and any context errors must be handled here. if errors.Is(err, os.ErrDeadlineExceeded) || errors.Is(err, context.DeadlineExceeded) { return ErrRequestTimedout } // Only return ErrClientDisconnected if the provided context is actually canceled.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 92.1K bytes - Viewed (1) -
src/net/http/h2_bundle.go
// when the stream's ReadTimeout has fired. func (st *http2stream) onReadTimeout() { if st.body != nil { // Wrap the ErrDeadlineExceeded to avoid callers depending on us // returning the bare error. st.body.CloseWithError(fmt.Errorf("%w", os.ErrDeadlineExceeded)) } } // onWriteTimeout is run on its own goroutine (from time.AfterFunc) // when the stream's WriteTimeout has fired.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Create", Func, 0}, {"CreateTemp", Func, 16}, {"DevNull", Const, 0}, {"DirEntry", Type, 16}, {"DirFS", Func, 16}, {"Environ", Func, 0}, {"ErrClosed", Var, 8}, {"ErrDeadlineExceeded", Var, 15}, {"ErrExist", Var, 0}, {"ErrInvalid", Var, 0}, {"ErrNoDeadline", Var, 10}, {"ErrNotExist", Var, 0}, {"ErrPermission", Var, 0}, {"ErrProcessDone", Var, 16},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)