netdev
[Top] [All Lists]

Re: TCP sockets not flagged as writable?

To: mostrows@xxxxxxxxxxxxx
Subject: Re: TCP sockets not flagged as writable?
From: kuznet@xxxxxxxxxxxxx
Date: Tue, 13 Mar 2001 21:54:41 +0300 (MSK)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <15022.25987.855027.503534@slug.watson.ibm.com> from "Michal Ostrowski" at Mar 13, 1 01:22:59 pm
Sender: owner-netdev@xxxxxxxxxxx
Hello!

> But my concern is that when you have just a little bit of space
> available a write operation may succeed without blocking, even though
> poll() says it won't.

Moreover, write() can succeed even if there is no space _really_.


> Should tcp_sendmsg() not also rely on the 1/3 free requirement?

Which is fully equavalent to decreasing sndbuf by 1/3. 8)
Wake is delayed exaclty to batch work.

Alexey

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