HTTP Event Streaming

jjmz

New Member
#1
I have a python Flask app - tried running it as a WSGI app, as well as just a reverse proxy on a backend running separately. I cannot for the life of me get the response to the client unbuffered. The flask app streams the response to the client, but the client is only seeing it after the end response is complete. talking to the backend directly gives the right behavior.. Any pointers on how to configure it so the response goes unbuffered to the client or specifically HTTP streaming of the response works?
 

jjmz

New Member
#2
For future reference for anyone else looking for a solution.. The issue seems to be the WSGI implementation that openlitespeed has.. using gunicorn to run the app and reverse proxying to it allows for the data to be streamed. I was running the dev server in Flask and reverse proxying to it. And in that case, the dev server was the problem. The above solution fixes both issues.
 
Top