Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2007 13:57:18 -0700
From:      "David Schwartz" <davids@webmaster.com>
To:        "Ian FREISLICH" <ianf@clue.co.za>
Cc:        current@freebsd.org
Subject:   RE: sendfile() not detecting closed connections.
Message-ID:  <MDEHLPKNGKAHNMBLJOLKCEKMHPAC.davids@webmaster.com>
In-Reply-To: <20071102162523.A47979@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> Probably what is happening is that sendfile() is counting bytes
> successfully
> inserted into the send socket buffer, rather than bytes sent on the wire.
> This is consistent with what happens when you write a file to a
> TCP socket,
> though, as you only know the bytes made it into the buffer, not
> to the remote
> destination.  I'd guess the threshold size you're seeing above is
> the size of
> the default send socket buffer.

Don't think so. After all, the connection was known to be closed (on both
ends) before he called 'sendfile'. So how could any bytes have successfully
been put into the send buffer?

DS





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MDEHLPKNGKAHNMBLJOLKCEKMHPAC.davids>