Message253669
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). |
|
Date |
User |
Action |
Args |
2015-10-29 09:36:16 | desbma | set | recipients:
+ desbma, r.david.murray, martin.panter, josh.r |
2015-10-29 09:36:16 | desbma | set | messageid: <1446111376.6.0.316113163623.issue25156@psf.upfronthosting.co.za> |
2015-10-29 09:36:16 | desbma | link | issue25156 messages |
2015-10-29 09:36:16 | desbma | create | |
|