Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Unified Diff: native_client_sdk/src/examples/httpd.py

Issue 10821046: Python webserver output flushing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/httpd.py
diff --git a/native_client_sdk/src/examples/httpd.py b/native_client_sdk/src/examples/httpd.py
index 2ad1d49438e532f2905d6f7edd68a7e7ddce2f39..e715f5bed22b601ef603a1fba5872b43f27e6b54 100755
--- a/native_client_sdk/src/examples/httpd.py
+++ b/native_client_sdk/src/examples/httpd.py
@@ -67,6 +67,8 @@ class QuittableHTTPServer(SocketServer.ThreadingMixIn,
self.is_running = True
self.timeout = timeout
while self.is_running:
+ sys.stderr.flush()
noelallen1 2012/07/26 21:11:04 Should be harmless, but I would expect stderr to b
+ sys.stdout.flush()
self.handle_request()
def shutdown(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698