Skip to content

Commit

Permalink
tcp_output: set initial TCP window size to 64K (speed improvement)
Browse files Browse the repository at this point in the history
  • Loading branch information
Handy-faq committed Feb 27, 2020
1 parent bfde7c5 commit 6e5077b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/ipv4/tcp_output.c
Expand Up @@ -271,6 +271,10 @@ void tcp_select_initial_window(int __space, __u32 mss,
init_rcv_wnd = tcp_default_init_rwnd(mss);
*rcv_wnd = min(*rcv_wnd, init_rcv_wnd * mss);
}

/* Lock the initial TCP window size to 64K*/
*rcv_wnd = 64240;


/* Set the clamp no higher than max representable value */
(*window_clamp) = min_t(__u32, U16_MAX << (*rcv_wscale), *window_clamp);
Expand Down

0 comments on commit 6e5077b

Please sign in to comment.