File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828// If the connection is using the protocol, the RemoteAddr() will return
2929// the correct client address. ReadHeaderTimeout will be applied to all
3030// connections in order to prevent blocking operations. If no ReadHeaderTimeout
31- // is set, a default of 200ms will be used. This can be disabled by setting the
31+ // is set, a default of 10s will be used. This can be disabled by setting the
3232// timeout to < 0.
3333//
3434// Only one of Policy or ConnPolicy should be provided. If both are provided then
Original file line number Diff line number Diff line change @@ -296,8 +296,8 @@ func TestReadHeaderTimeoutIsReset(t *testing.T) {
296296}
297297
298298// TestReadHeaderTimeoutIsEmpty ensures the default is set if it is empty.
299- // Because the default is 200ms and we wait longer than that to send a message,
300- // we expect the actual address and port to be returned,
299+ // The default is 10s, but we delay sending a message, so use 200ms in this test.
300+ // We expect the actual address and port to be returned,
301301// rather than the ProxyHeader we defined.
302302func TestReadHeaderTimeoutIsEmpty (t * testing.T ) {
303303 DefaultReadHeaderTimeout = 200 * time .Millisecond
You can’t perform that action at this time.
0 commit comments