Built-in HTTP server doesn't support ctx._write output

Bug #121908 reported by Adam Atlas on 2007-06-23
Affects Status Importance Assigned to Milestone
Anand Chitipothu

Bug Description

When using the built-in HTTP server, start_response always returns
None to wsgifunc, making the use of 'flush mode' impossible.

Index: httpserver.py
--- httpserver.py (revision 170)
+++ httpserver.py (working copy)
@@ -189,8 +189,9 @@
         def __call__(self, environ, start_response):
             def xstart_response(status, response_headers, *args):
- start_response(status, response_headers, *args)
+ write = start_response(status, response_headers, *args)
                 self.log(status, environ)
+ return write
             path = environ.get('PATH_INFO', '')
             if path.startswith('/static/'):

Adam Atlas (adam-atlas) wrote :

Formatting didn't come out quite right...

Aaron Swartz (aaronsw) on 2007-06-25
Changed in webpy:
assignee: nobody → anandology
importance: Undecided → Medium
Changed in webpy:
status: New → Fix Committed
Changed in webpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers