3

The Apache HTTP RequestConfig getSocketTimeout() and getConnectTimeout() both say:

A negative value is interpreted as undefined (system default if applicable).

And they both say the default value is:

Default: -1

So I'm using the default value of -1, but what is the "system default" value? Is there some way I can find this by running a command on my terminal or something?

Olaf Kock
  • 46,930
  • 8
  • 59
  • 90
Dasmowenator
  • 5,505
  • 5
  • 36
  • 50
  • The default will likely depend on your operating system and other details like that. See here for Linux: https://stackoverflow.com/questions/1045964/how-to-view-change-socket-connection-timeout-on-linux – Joni Apr 02 '20 at 18:34
  • `cat /proc/sys/net/ipv4/tcp_syn_retries` shows 6 on my machine, but I think this is the *number* of retries, right? Is there a similar way to view the duration of each attempt (aka the socket timeout)? – Dasmowenator Apr 02 '20 at 19:41
  • The default read timeoit is infinity on all platforms. The default connect timeout is of the order of a minute, but it varies by platform. Each SYN retry uses double the timeout of the previous one. – user207421 Apr 02 '20 at 20:28

0 Answers0