This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients brunogola, endian, gregory.p.smith, orsenthil, r.david.murray, terry.reedy, yangman
Date 2010-11-21.15:15:03
SpamBayes Score 2.4833307e-08
Marked as misclassified No
Message-id <1290352506.83.0.698055530609.issue3709@psf.upfronthosting.co.za>
In-reply-to
Content
Senthil, I didn't clearly express my concern about send_response_only.  It doesn't look to me like, with buffering in place, that it *should* write directly, it looks to me like it should write to the buffer.  Consider specifically the fact that send_response_only is called from send_response_only, which is in turn called from send_error.

So IMO the unit test should at a minimum test that send_response_only buffers, and ideally it should test that send_error buffers (but that would require a somewhat different test harness since it would need to report that its write method was called only once).

I think the code you committed is still valid, it just doesn't quite do full header buffering.

And I agree that this should not be backported.
History
Date User Action Args
2010-11-21 15:15:06r.david.murraysetrecipients: + r.david.murray, terry.reedy, gregory.p.smith, orsenthil, brunogola, yangman, endian
2010-11-21 15:15:06r.david.murraysetmessageid: <1290352506.83.0.698055530609.issue3709@psf.upfronthosting.co.za>
2010-11-21 15:15:04r.david.murraylinkissue3709 messages
2010-11-21 15:15:03r.david.murraycreate