Author desbma
Recipients desbma, josh.r, martin.panter, r.david.murray
Date 2015-10-29.09:36:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446111376.6.0.316113163623.issue25156@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the comment.

> Also, the os.sendfile() doc suggests that some platforms only support writing to sockets, so I definitely think a backup plan is needed.

You are right, the man page clearly says:
> Applications may wish to fall back to read(2)/write(2) in the case
> where sendfile() fails with EINVAL or ENOSYS.

I will improve the code and add tests for conditions where sendfile fails.

I have tested it manually, but I will also add a test with a copy of a file > 4GB (it causes several calls to sendfile).
History
Date User Action Args
2015-10-29 09:36:16desbmasetrecipients: + desbma, r.david.murray, martin.panter, josh.r
2015-10-29 09:36:16desbmasetmessageid: <1446111376.6.0.316113163623.issue25156@psf.upfronthosting.co.za>
2015-10-29 09:36:16desbmalinkissue25156 messages
2015-10-29 09:36:16desbmacreate