Hi,
I have a script which runs for 70 seconds. I have NGINX connecting to it via uWSGI.
I have set "uwsgi_read_timeout 90;". However, NGINX drops the connection exactly at 60 seconds -
"upstream prematurely closed connection while reading response header from upstream"
My script continues to run and completes after 70 seconds, however my browser connection has died before then (502 error).
The option "uwsgi_read_timeout" does its job for anything less than 60 seconds (ie uwsgi_read_timeout 30;) and terminates with a 504 error as expected.
I don't quite understand what is catching the 502 bad gateway error even though I have instructed nginx to permit a uwsgi read timeout of 90
Other -
I also have set "keepalive_timeout 300 300;"
Any ideas as to the cause? I see numerous posts on the internet advising to use "uwsgi_read_timeout"
Thanks