Skip to content

Instantly share code, notes, and snippets.

Lucas Borges borgeslucaz

View GitHub Profile
View Ubuntu reduce TIME_WAIT and set socket recycle and reuse
sudo vi /etc/sysctl.conf
# Add the following to sysctl.conf:
# Decrease TIME_WAIT seconds
net.ipv4.tcp_fin_timeout = 30
# Recycle and Reuse TIME_WAIT sockets faster
net.ipv4.tcp_tw_recycle = 1
You can’t perform that action at this time.