Message129690
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. |
|
Date |
User |
Action |
Args |
2011-02-28 12:13:47 | sdaoden | set | recipients:
+ sdaoden, pitrou |
2011-02-28 12:13:47 | sdaoden | set | messageid: <1298895227.35.0.0449812619444.issue11351@psf.upfronthosting.co.za> |
2011-02-28 12:13:46 | sdaoden | link | issue11351 messages |
2011-02-28 12:13:46 | sdaoden | create | |
|