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 giampaolo.rodola
Recipients giampaolo.rodola
Date 2019-03-30.16:47:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553964458.43.0.741059488448.issue36488@roundup.psfhosted.org>
In-reply-to
Content
From "man sendfile" on both OSX and FreeBSD:

<<[EINTR] A signal interrupted sendfile() before it could be completed. If specified, the number of bytes successfully sent will be returned in *len.>>

Right now we catch EINTR and simply retry. Instead we should only retry is no bytes were sent, else we should return those bytes, similarly to what we do on EAGAIN and EBUSY:
https://github.com/python/cpython/blob/2438cdf0e932a341c7613bf4323d06b91ae9f1f1/Modules/posixmodule.c#L8907-L8917
History
Date User Action Args
2019-03-30 16:47:38giampaolo.rodolasetrecipients: + giampaolo.rodola
2019-03-30 16:47:38giampaolo.rodolasetmessageid: <1553964458.43.0.741059488448.issue36488@roundup.psfhosted.org>
2019-03-30 16:47:38giampaolo.rodolalinkissue36488 messages
2019-03-30 16:47:38giampaolo.rodolacreate