Artificial intelligent assistant

Flaskにおける複数リクエストの並列処理 Python 3.3.5 + Flask ## FlaskHTTP * 2 * Flask ## if __name__ == '__main__': app = Flask(__name__) app.config.update(PROPAGATE_EXCEPTIONS = True) @app.route('/') def greet(): n = randrange(1, 10) sleep(n) return 'Hello world! I slept {0}[s].'.format(str(n)) app.run() 1 - 10 2localhost:5000 Flask

flask.Flask.runprocessesthreaded windowsforkproesses


app.run(processes=3)





app.run(threaded=true)




runwerkzeugoptionsWerkzeug

> * options – the options to be forwarded to the underlying Werkzeug server. See werkzeug.run_simple() for more information.
>


Flask.run (bitbucket.org)
werkzeug parameters (pocoo.org)

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7ea04d99634e872e44ac76eb3ff7da01