Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2003 11:55:03 +0400 (MSD)
From:      Igor Sysoev <is@rambler-co.ru>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        arch@freebsd.org
Subject:   Re: sendfile(2) SF_NOPUSH flag proposal
Message-ID:  <Pine.BSF.4.21.0305291153300.52120-100000@is>
In-Reply-To: <3ED5A105.26F528A6@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 May 2003, Terry Lambert wrote:

> Igor Sysoev wrote:
> > > will result in you sleeping with PRUS_MORETOCOME set, but with
> > > no more being sent because the send buffer doesn't get emptied,
> > > as it's waiting for more data to send.
> > 
> > But as I understand PRUS_MORETOCOME is not set if socket is non-blocking.
> 
> Then the bug is still not fixed by setting it, since your total
> send size might be less than `sysctl net.inet.tcp.sendspace`.

Why ? We can reset TF_MORETOCOME if the sending is completed.

> You guys should really just have a buffer finalize function
> that gets called on block/return cases, and impute the flags
> you need on the socket while it's being used for sendfile.


Igor Sysoev
http://sysoev.ru/en/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0305291153300.52120-100000>