Author sdaoden
Recipients pitrou, sdaoden
Date 2011-02-28.12:13:46
SpamBayes Score 0.043153
Marked as misclassified No
Message-id <1298895227.35.0.0449812619444.issue11351@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-02-28 12:13:47sdaodensetrecipients: + sdaoden, pitrou
2011-02-28 12:13:47sdaodensetmessageid: <1298895227.35.0.0449812619444.issue11351@psf.upfronthosting.co.za>
2011-02-28 12:13:46sdaodenlinkissue11351 messages
2011-02-28 12:13:46sdaodencreate