Skip to content

Instantly share code, notes, and snippets.

@sudara
Created May 15, 2009 13:55
Show Gist options
  • Save sudara/112218 to your computer and use it in GitHub Desktop.
Save sudara/112218 to your computer and use it in GitHub Desktop.
2.5) Connections expiration time
--------------------------------
It is possible (and recommended) to configure several time-outs on TCP
connections. Three independant timers are adjustable with values specified
in milliseconds. A session will be terminated if either one of these timers
expire.
- the time we accept to wait for data from the client, or for the client to
accept data : 'clitimeout' :
# client time-out set to 2mn30.
clitimeout 150000
- the time we accept to wait for data from the server, or for the server to
accept data : 'srvtimeout' :
# server time-out set to 30s.
srvtimeout 30000
- the time we accept to wait for a connection to establish on a server :
'contimeout' :
# we give up if the connection does not complete within 4 seconds
contimeout 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment