Sunday, February 26, 2017

Re: Sometimes Channels does not work properly

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


On 26 Feb 2017 04:40, "Mohammad Ghasemi" <hamp.cpas@gmail.com> wrote:
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"

--
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-users@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.

--
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-users@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/CAFwN1uqx6jPEDR9663hXsCG8LO55ySQGF0Q1aJy4_GGr9BCQ6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment