diff options
author | tysand@chromium.org <tysand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 00:01:37 +0000 |
---|---|---|
committer | tysand@chromium.org <tysand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 00:01:37 +0000 |
commit | 9eeb4ba2f4836fc5c9e69be1564820cb6346aaea (patch) | |
tree | 5244a94e886b08174143fb0031fe99a781aa7908 /native_client_sdk/src/examples/httpd.py | |
parent | db3cc3eefbb6f66f749752d80226f440e1f653f3 (diff) | |
download | chromium_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/examples/httpd.py')
-rwxr-xr-x | native_client_sdk/src/examples/httpd.py | 2 |
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): |