Re: Possible BUG in IPv4 TCP window handling, all recent 2.4.x/2.6.x kernels

From: John Heffner
Date: Fri Sep 02 2005 - 09:17:15 EST


On Sep 2, 2005, at 9:48 AM, Alexey Kuznetsov wrote:

Hello!

If you overflow the socket's memory bound, it ends up calling
tcp_clamp_window(). (I'm not sure this is really the right thing to do
here before trying to collapse the queue.)

Collapsing is too expensive procedure, it is rather an emergency measure.
So, tcp collapses queue, when it is necessary, but it must reduce window
as well.

Right.

I wonder if clamping the window though is too harsh. Maybe just setting the rcv_ssthresh down is better? Why the distinction between in-order and out-of-order data? Because you expect in-order data to be a persistent case?

-John

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html