Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WroteRequest (0.12 sec)

  1. src/net/http/transport.go

    // will wait to see the Request's Body.Write result after getting a
    // response from the server. See comments in (*persistConn).wroteRequest.
    //
    // In tests, we set this to a large value to avoid flakiness from inconsistent
    // recycling of connections.
    var maxWriteWaitBeforeConnReuse = 50 * time.Millisecond
    
    // wroteRequest is a check before recycling a connection that the previous write
    // (from writeLoop above) happened and was successful.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  2. src/net/http/request.go

    func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitForContinue func() bool) (err error) {
    	trace := httptrace.ContextClientTrace(r.Context())
    	if trace != nil && trace.WroteRequest != nil {
    		defer func() {
    			trace.WroteRequest(httptrace.WroteRequestInfo{
    				Err: err,
    			})
    		}()
    	}
    	closed := false
    	defer func() {
    		if closed {
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top