Author akira
Recipients akira, asvetlov, christian.heimes, giampaolo.rodola, josh.r, neologix, pitrou, rosslagerwall
Date 2014-04-21.23:34:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398123291.4.0.589225803358.issue17552@psf.upfronthosting.co.za>
In-reply-to
Content
Should socket.sendfile() always return number of bytes sent because file.tell() may be changed by something else that uses the same file descriptor?

What happens if the file grows?

Instead of returning `(was_os_sendfile_used, os_sendfile_error)`, you could specify `no_fallback=False` that could be set to `True` to assert that the fallback is not used (with `no_fallback=True` the `os_sendfile_error` is raised instead of using socket.send() as a fallback). 

If possible; always include number of bytes sent in any error that is raised.
History
Date User Action Args
2014-04-21 23:34:51akirasetrecipients: + akira, pitrou, giampaolo.rodola, christian.heimes, asvetlov, neologix, rosslagerwall, josh.r
2014-04-21 23:34:51akirasetmessageid: <1398123291.4.0.589225803358.issue17552@psf.upfronthosting.co.za>
2014-04-21 23:34:51akiralinkissue17552 messages
2014-04-21 23:34:51akiracreate