Skip to content

Instantly share code, notes, and snippets.

@Tyralion
Forked from mikhailov/script.sh
Created October 21, 2012 13:16
Show Gist options
  • Save Tyralion/3926926 to your computer and use it in GitHub Desktop.
Save Tyralion/3926926 to your computer and use it in GitHub Desktop.
Fight with TCP Slow Start
#!/bin/sh
ip route |grep default # default via 10.235.9.1 dev eth0
ip route change default via `ip route| awk '/^def/{print $3}'` dev eth0 initcwnd 16
ip route |grep default # default via 10.235.9.1 dev eth0 initcwnd 16
sysctl -w net.ipv4.tcp_slow_start_after_idle=0
sysctl -a |grep net.ipv4.tcp_slow_start_after_idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment