Re: many outgoing tcp sockets are slower than a few
From: Lennert Buytenhek <hidden>
Date: 2005-02-21 12:36:53
From: Lennert Buytenhek <hidden>
Date: 2005-02-21 12:36:53
On Mon, Feb 21, 2005 at 01:25:41PM +0100, bert hubert wrote:
quoted
O_NONBLOCK send() is really nonblocking, but O_NONBLOCK sendfile()It is? So it returns EAGAIN if the data to be sent is not in the page cache?
No, it just blocks. It only returns EAGAIN if the data is in the page cache but the socket TX queue doesn't have enough space. (At least, when I last tried it.) --L