From f4a2f1a51f5c0eb1a22fe242c8628afb2170ebec Mon Sep 17 00:00:00 2001 From: Ghalib Suleiman Date: Tue, 12 Aug 2014 15:07:29 -0700 Subject: [PATCH] Turn on threading for Werkzeug's run_simple() This is now default behavior. Without this, moto is unable to deal with simultaneous requests. --- moto/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/server.py b/moto/server.py index c1ecef074..a26a7d913 100644 --- a/moto/server.py +++ b/moto/server.py @@ -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()