Sometimes Channels does not work properly

29 views
Skip to first unread message

Mohammad Ghasemi

unread,
Feb 26, 2017, 7:40:57 AM2/26/17
to Django users
Hello everyone,
I use channels for some real time systems like notifications and chat. While I've set it right, but it still does not work properly.
Some times client connects but does not receive any message (I mean client receives absolutely no message).
Some other times everything works properly.
I use one redis-server in local network for cache,session and channels.
I monitored redis and I saw it receives a lot of queries for each client. Is that ok?

1488090236.719182 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.719203 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.729424 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.729441 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.739766 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.739788 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.750005 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.750020 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.760344 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.760366 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.770576 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.770593 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.780919 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.780941 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.791156 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.791172 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.801510 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.801532 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.811746 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.811760 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"
1488090236.822083 [0 127.0.0.1:54906] "EVALSHA" "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" "asgi:websocket.send!tbovkXbPevpt"
1488090236.822103 [0 lua] "LPOP" "asgi:websocket.send!tbovkXbPevpt"

Andrew Godwin

unread,
Feb 26, 2017, 11:33:24 AM2/26/17
to django...@googlegroups.com
Don't worry about the redis traffic, that's normal. Instead, what would help is:

* Knowing the versions you have of django, channels, Daphne, asgiref and asgi_redis

* Seeing the console output from the server (and a worker if you are running one, but you don't if you are using runserver)

* Getting any JavaScript console logs from the browser as the connections fail

* Seeing your basic consumer code, if possible

Andrew

Andrew


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9279407b-3ea2-4006-8bdf-28da3e819d5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages