netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <zbr@ioremap.net>
To: bert hubert <bert.hubert@netherlabs.nl>,
	Bill Fink <billfink@mindspring.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	ilpo.jarvinen@helsinki.fi, h.willstrand@gmail.com, netdev@vger
Subject: Re: sendfile(), SO_LINGER, RST etc summary, please check
Date: Sun, 18 Jan 2009 13:33:39 +0300	[thread overview]
Message-ID: <20090118103339.GA14823@ioremap.net> (raw)
In-Reply-To: <20090117220229.GA30661@outpost.ds9a.nl>

Hi Bert.

On Sat, Jan 17, 2009 at 11:02:29PM +0100, bert hubert (bert.hubert@netherlabs.nl) wrote:
> As promised, I've written a summary based on all your fine answers with
> regards to my questions on why a close() delivered an immediate RST, even
> though I had SO_LINGER enabled.
> 
> The most up to date version can be found on
> http://ds9a.nl/the-ultimate-so_linger-page-or-why-is-my-tcp-not-reliable.txt
> 
> And I've also included it here. I hope you find the time to see if
> everything I wrote is correct. Suggestions for additional material are also
> very welcome!

Looks very good, thanks for storing the docs!

> But it does not wait until all the data has been acknowledged.
> 
> I don't yet known how the slice() function call behaves in this situation.

splice() from the fd to socket behaves exactly the same, since right now
sendfile() is implemented as a splice(). Other directions are not
affected by this behaviour (like socket-pipe-socket). Userspace memory
to socket (aka vmsplice()) iirc behaves exactly like splice(), i.e. it
is not allowed to write to the area being transmitted until explicit ack
was received.

-- 
	Evgeniy Polyakov

      reply	other threads:[~2009-01-18 10:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-17 22:02 sendfile(), SO_LINGER, RST etc summary, please check bert hubert
2009-01-18 10:33 ` Evgeniy Polyakov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090118103339.GA14823@ioremap.net \
    --to=zbr@ioremap.net \
    --cc=bert.hubert@netherlabs.nl \
    --cc=billfink@mindspring.com \
    --cc=h.willstrand@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=ilpo.jarvinen@helsinki.fi \
    --cc=netdev@vger \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).