Matt Joiner <anacro...@gmail.com> added the comment:

Thanks for catching that:

Presently  (Linux  2.6.9):  in_fd, must correspond to a file which sup‐
       ports mmap(2)-like operations (i.e., it cannot be a socket); and out_fd
       must refer to a socket.

Despite the fact the manpage hasn't changed since 2004, sendfile still only 
works for sockets. :(

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10882>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to