mirror of
https://github.com/opnsense/src.git
synced 2026-06-15 03:31:11 -04:00
The transmit burst limit for newreno completely breaks TCP's performance
if the receive side is using delayed acks. Temporarily remove it. MFC after: 0 days
This commit is contained in:
parent
e409590d0e
commit
d912c694ee
1 changed files with 10 additions and 0 deletions
|
|
@ -921,8 +921,18 @@ out:
|
|||
tp->t_flags &= ~TF_ACKNOW;
|
||||
if (tcp_delack_enabled)
|
||||
callout_stop(tp->tt_delack);
|
||||
#if 0
|
||||
/*
|
||||
* This completely breaks TCP if newreno is turned on. What happens
|
||||
* is that if delayed-acks are turned on on the receiver, this code
|
||||
* on the transmitter effectively destroys the TCP window, forcing
|
||||
* it to four packets (1.5Kx4 = 6K window).
|
||||
*/
|
||||
if (sendalot && (!tcp_do_newreno || --maxburst))
|
||||
goto again;
|
||||
#endif
|
||||
if (sendalot)
|
||||
goto again;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue