Closed fizzy123 closed 7 years ago
hmm, difficult to say.
I assume it works with ./manage.py runserver
?
Did you try the stand-alone mode with uWSGI without NGiNX?
It hasn't worked without NGiNX in any form for me. Running without NGiNX caused the http_version and the various headers to not be set properly.
then you certainly messed up with the uWSGI settings, but that's off-topic.
Hi. I'm trying to get your library set up with a basic application. For comparability, I didn't get your out of the box demo application set up, but I've got something similar in the code that I have and I'm running into a strange error.
I've got your demo javascript page setup and it keeps getting stuck in a loop of connecting, disconnecting, trying to reconnect, saying it has a connection, and then disconnecting again. In other words, the alerts cycle as such:
I did some digging and I found what I suspect to be the problem. In line 113 of
/ws4redis/wsgi_server.py
, I pass an array consisting of my redis_fd and my websocket_fd toself.select
. However, as it goes through the loop, only the redis_fd ever gets returned and nothing gets sent through the websocket fd.My uwsgi ini file that I am using for wsgi_sockets.py is
and my nginx file is
As you can see, I'm using Django with WebSockets for Redis behind NGiNX using uWSGI setup. I also hardcoded the $http_upgrade variable, since my nginx wasn't populating it properly for some reason and I was hoping that wouldn't be problematic.
Thanks for your help in advance and let me know if you have any more questions about my situation!