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