Replies: 2 comments
-
can you add how does your |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank to taking time to reply @yedpodtrzitko, My CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [("localhost", 6379)],
},
},
} Check: $ ping -c 2 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.009 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.061 ms
--- localhost ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 24ms
rtt min/avg/max/mdev = 0.009/0.035/0.061/0.026 ms
$ ping -c 2 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.011 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.061 ms
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 23ms
rtt min/avg/max/mdev = 0.011/0.036/0.061/0.025 ms |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for maintaining this great package. When I have the time and a better understanding of how it works, I will come in to help. The library gets a strange behavior when I send an event from a consumer to another one.
Debian 10, Python 3.7.3 and Firefox dev 85.0b9.
pip freeze
output showing your package versionsRunning via:
python manage.py runserver
While trying to send an event message from
MyConsumer2
(appear to be "Chat" like consumer) from Async context toMyConsumer1
(appear to be "Notification" consumer), I get an important delay (between 30s and 1min) to receive messages and notifications (case 1).I find a workaround, when I take advantage of a sync function to send an event from consumer2 to consumer1 (case 2), I don't any delay.
No errors.
I will send 10 messages (1 per second) and print them with the full date while I will receive them.
Case 1 with an important delay
App1/consumers.py:
App2/consumers.py:
Console / Output :
Case 2 without any delay
App1/consumers.py:
No change.
App2/consumers.py:
Console / Output :
Beta Was this translation helpful? Give feedback.
All reactions