Author eric.araujo
Recipients eric.araujo, giampaolo.rodola, rosslagerwall
Date 2011-12-10.16:40:36
SpamBayes Score 2.81651e-07
Marked as misclassified No
Message-id <1323535237.2.0.568227538082.issue13564@psf.upfronthosting.co.za>
In-reply-to
Content
> deciding whether using sendfile() should probably be done silently (no explicit argument)
As an optimization taking advantage from OS support, I think this should be automatic too.  But if there are too many issues, then explicit argument sounds better.

> the input fd should be a regular file and it's not clear how to determine this beforehand
Calling some function like os.stat that only works with real files?  (not sure os.stat is the right function, just giving an idea)

> in case of disconnection OSError is raised instead of socket.error
PEP 3151!
>>> socket.error, OSError, IOError
(<class 'OSError'>, <class 'OSError'>, <class 'OSError'>)

:)
History
Date User Action Args
2011-12-10 16:40:37eric.araujosetrecipients: + eric.araujo, giampaolo.rodola, rosslagerwall
2011-12-10 16:40:37eric.araujosetmessageid: <1323535237.2.0.568227538082.issue13564@psf.upfronthosting.co.za>
2011-12-10 16:40:36eric.araujolinkissue13564 messages
2011-12-10 16:40:36eric.araujocreate