Skip to content

Instantly share code, notes, and snippets.

@mattes
Last active September 17, 2015 18:36
Show Gist options
  • Save mattes/1699edb6854fa65c1be3 to your computer and use it in GitHub Desktop.
Save mattes/1699edb6854fa65c1be3 to your computer and use it in GitHub Desktop.
# ephemeral port range
cat /proc/sys/net/ipv4/ip_local_port_range
# https://github.com/torvalds/linux/blob/master/include/net/tcp.h#L117
#define TCP_TIMEWAIT_LEN (60*HZ) /* how long to wait to destroy TIME-WAIT
* state, about 60 seconds */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment