This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1362847287.3.0.116731814504.issue13564@psf.upfronthosting.co.za>
Content
> 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.
History
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