sendfile(2) SF_NOPUSH flag proposal

Terry Lambert tlambert2 at mindspring.com
Thu May 29 08:38:22 PDT 2003


Igor Sysoev wrote:
> 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.

It's called a "deadly embrace" deadlock.  Look it up.

-- Terry


More information about the freebsd-arch mailing list