Éric Araujo <mer...@netwok.org> added the comment: > 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'>) :) ---------- nosy: +eric.araujo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com