summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src
diff options
context:
space:
mode:
authortysand@chromium.org <tysand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 00:01:37 +0000
committertysand@chromium.org <tysand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 00:01:37 +0000
commit9eeb4ba2f4836fc5c9e69be1564820cb6346aaea (patch)
tree5244a94e886b08174143fb0031fe99a781aa7908 /native_client_sdk/src
parentdb3cc3eefbb6f66f749752d80226f440e1f653f3 (diff)
downloadchromium_src-9eeb4ba2f4836fc5c9e69be1564820cb6346aaea.zip
chromium_src-9eeb4ba2f4836fc5c9e69be1564820cb6346aaea.tar.gz
chromium_src-9eeb4ba2f4836fc5c9e69be1564820cb6346aaea.tar.bz2
Python webserver output flushing.
Added flushing to python server to fix issue in Visual Studio output window. BUG=136414 TEST= Review URL: https://chromiumcodereview.appspot.com/10821046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src')
-rwxr-xr-xnative_client_sdk/src/examples/httpd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/native_client_sdk/src/examples/httpd.py b/native_client_sdk/src/examples/httpd.py
index 2ad1d49..e715f5b 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()
+ sys.stdout.flush()
self.handle_request()
def shutdown(self):