Turn on threading for Werkzeug's run_simple()

This is now default behavior. Without this, moto is unable to deal
with simultaneous requests.
This commit is contained in:
Ghalib Suleiman 2014-08-12 15:07:29 -07:00
parent 1f907eddce
commit f4a2f1a51f

View File

@ -102,7 +102,7 @@ def main(argv=sys.argv[1:]):
main_app = DomainDispatcherApplication(create_backend_app, service=args.service)
main_app.debug = True
run_simple(args.host, args.port, main_app)
run_simple(args.host, args.port, main_app, threaded=True)
if __name__ == '__main__':
main()