[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

Senthil Kumaran report at bugs.python.org
Sun Nov 21 16:50:47 CET 2010


Senthil Kumaran <orsenthil at gmail.com> added the comment:

On Sun, Nov 21, 2010 at 03:15:06PM +0000, R. David Murray wrote:
> 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.

Correct. Now that I re-looked at the code, keeping your above
statement in mind", I tend to agree with you and notice the problem. I
think, the headers_buffer should be moved higher up in the class so
that it buffer the headers from all these methods which atm write
directly to the output stream.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3709>
_______________________________________


More information about the Python-bugs-list mailing list