0

Is there a possibility to set a KeepAlive timeout for a flask server?

I found that post How to make Flask/ keep Ajax HTTP connection alive?? However, I want to give a parameter which is also possible for nginx and apache server such as:

app.run(keep_alive_timeout=60)

Edit: This question Are a WSGI server and HTTP server required to serve a Flask app? didn't answer how to to set an KeepAlive timeout.

Rene B.
  • 6,557
  • 7
  • 46
  • 72
  • 1
    AFAIK, there is none. There is a ticker opened for this, and their response is to use some queuing system. https://github.com/pallets/flask/issues/1478 – Vignesh SP Nov 20 '19 at 14:44
  • @VigneshSP thanks, do you know if there is an other option to set the timeout? – Rene B. Nov 20 '19 at 14:48

0 Answers0