Reputation: 49
I am working on a flask-socketio server which is getting stuck in a state where only 504
s (gateway timeout) are returned. We are using AWS ELB in front of the server. I was wondering if anyone wouldn't mind giving some tips as to how to debug this issue.
Other symptoms:
504
s are received from requests. Restarting the process seems to fix the issue.netstat -nt
on the server, I see many entries with rec-q's of over 100 stuck in the CLOSE_WAIT
statestrace
on the process, I only see select
and clock_gettime
tcpdump
on the server, I can see the valid requests coming into the serverEDIT: I should also add two things:
daemonize
function is used for daemonizing the appUpvotes: 2
Views: 1339
Reputation: 49
It seemed that switching to gunicorn as the wsgi server fixed the problem. This legitimately might be an issue with the flask-socketio wsgi server.
Upvotes: 2