Steffen Daode Nurpmeso <[email protected]> added the comment:
It's about the headers[]:
def test_headers(self):
total_sent = 0
sent = os.sendfile(self.sockno, self.fileno, 0, 4096,
headers=[b"x" * 512])
total_sent += sent
print("HEADER SENT:", sent)
prints
test_headers (__main__.TestSendfile) ... HEADER SENT: 4096
Well. 'man 2 sendfile' tells me it is supporting headers and
trailers since Darwin 9.0 aka Mac OS X 10.5.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com