netdev
[Top] [All Lists]

Re: 2.4.x kernel bug

To: AppleUni Author <root@xxxxxxxx>
Subject: Re: 2.4.x kernel bug
From: Andi Kleen <ak@xxxxxx>
Date: Mon, 6 Aug 2001 19:54:35 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <200108061748.NAA04242@dr.ea.ms>; from AppleUni Author on Mon, Aug 06, 2001 at 07:48:33PM +0200
References: <200108061748.NAA04242@dr.ea.ms>
Sender: owner-netdev@xxxxxxxxxxx
On Mon, Aug 06, 2001 at 07:48:33PM +0200, AppleUni Author wrote:
> the following code reports how large the queue is in 2.2.x, but NOT in 2.4
> 
> ioctl(sock, TIOCOUTQ, &tcpbufsize);
> 
> on a 2.2.x kernel it tells me how large the tcp outbound (and inbound) queue
> size is, but not in 2.4. This is breaking applications that scale depending 
> on how full and empty the queue is.

It doesn't tell you that on 2.2. It tells you there how many bytes are still
free in the send queue (send buffer size - allocated bytes including metadata),
which was clearly a bug. 2.4 instead tells you how many bytes are unacked
which makes a lot more sense. If the connection is not established that
number is zero.


-Andi


<Prev in Thread] Current Thread [Next in Thread>