RE: sendfile() not detecting closed connections.

From: David Schwartz <davids_at_webmaster.com>
Date: Fri, 2 Nov 2007 13:57:18 -0700
> 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
Received on Fri Nov 02 2007 - 20:08:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:20 UTC