commit | c7be284fa749e8077fefaa82cd188e82c05a59ee | [log] [tgz] |
---|---|---|
author | Conley Owens <[email protected]> | Mon Nov 14 09:30:30 2011 -0800 |
committer | Android (Google) Code Review <[email protected]> | Mon Nov 14 09:30:30 2011 -0800 |
tree | e31c80c497551dc617b16f8c9df4d4ec5f1765f7 | |
parent | d28623b0cd2487f8797067c449437153654706b3 [diff] | |
parent | 7ecc607ec89212e0f0df11641fa1ede18f5fd6fe [diff] |
Merge "Allow reuse of port 8080"
diff --git a/scripts/micro-httpd.py b/scripts/micro-httpd.py index 13e35a7..31ad1ea 100755 --- a/scripts/micro-httpd.py +++ b/scripts/micro-httpd.py
@@ -18,5 +18,6 @@ PORT = int(os.environ.get('HTTP_PORT', 8080)) Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("0.0.0.0", PORT), Handler) +httpd.allow_reuse_address = True print "Serving on port %d" % PORT httpd.serve_forever()