Author pitrou
Recipients eric.araujo, giampaolo.rodola, pitrou, rosslagerwall
Date 2013-03-09.16:48:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362847488.3614.4.camel@localhost.localdomain>
In-reply-to <>
> Because otherwise sendfile() fails with EAGAIN many times before
> sending any actual data. 

EAGAIN on a blocking fd? Is it documented somewhere?
The Linux man page for sendfile() says:

       EAGAIN Nonblocking I/O has been selected using O_NONBLOCK and the
write would block.

FreeBSD apparently says something similar:

     [EAGAIN]		The socket is marked for non-blocking I/O and not all
			data was sent due to the socket buffer being filled.
			If specified, the number of bytes successfully sent
			will be returned in *sbytes.
Date User Action Args
2013-03-09 16:48:34pitrousetrecipients: + pitrou, giampaolo.rodola, eric.araujo, rosslagerwall
2013-03-09 16:48:34pitroulinkissue13564 messages
2013-03-09 16:48:33pitroucreate