Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for avoidance (0.1 sec)

  1. src/net/http/serve_test.go

    		100 * time.Millisecond,
    		500 * time.Millisecond,
    		time.Second,
    		5 * time.Second,
    	}, func(t *testing.T, timeout time.Duration) error {
    		SetRSTAvoidanceDelay(t, timeout)
    		t.Logf("set RST avoidance delay to %v", timeout)
    
    		const bodySize = 5 << 20
    		req := []byte(fmt.Sprintf("POST / HTTP/1.1\r\nHost: foo.com\r\nContent-Length: %d\r\n\r\n", bodySize))
    		for i := 0; i < bodySize; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    		100 * time.Millisecond,
    		500 * time.Millisecond,
    		time.Second,
    		5 * time.Second,
    	}, func(t *testing.T, timeout time.Duration) error {
    		SetRSTAvoidanceDelay(t, timeout)
    		t.Logf("set RST avoidance delay to %v", timeout)
    
    		const deniedMsg = "sorry, denied."
    		cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    			Error(w, deniedMsg, StatusUnauthorized)
    		}))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top