Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9444
b: refs/heads/master
c: 6b25185
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 28, 2005
1 parent 37da2d8 commit 11de25d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64233bffbb50f12e576c61d1698a573c8033004a
refs/heads/master: 6b251858d377196b8cea20e65cae60f584a42735
11 changes: 6 additions & 5 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,16 @@ void tcp_select_initial_window(int __space, __u32 mss,
}

/* Set initial window to value enough for senders,
* following RFC1414. Senders, not following this RFC,
* following RFC2414. Senders, not following this RFC,
* will be satisfied with 2.
*/
if (mss > (1<<*rcv_wscale)) {
int init_cwnd = 4;
if (mss > 1460*3)
int init_cwnd;

if (mss > 1460)
init_cwnd = 2;
else if (mss > 1460)
init_cwnd = 3;
else
init_cwnd = (mss > 1095) ? 3 : 4;
if (*rcv_wnd > init_cwnd*mss)
*rcv_wnd = init_cwnd*mss;
}
Expand Down

0 comments on commit 11de25d

Please sign in to comment.