I use Channels & websockets for my webapp's "export data" functionality, 
since it can take a long time to generate the file (more than 30 seconds). 
In general this works fine, even for large downloads (several MB), but I 
have seen several cases on Heroku where the browser never receives the 
message with the file, even though debugging shows that 
JsonWebsocketConsumer.send was called as expected.

I found this Github issue <https://github.com/django/channels/issues/11> that 
says the message limit is 1 MB (or maybe 256 kb). My questions:

- Where is this limit defined? I searched the source of Channels and 
Daphne. I'm trying to figure out where the failure is happening -- in the 
worker, Daphne, or Redis.
- What happens if the limit is exceeded? Is an exception raised? (Because 
in my case it fails silently.)
- Is there really a 1 MB limit? Because it seems I have been able to send 
files larger than that using channels/asgi_redis (unfortunately I'm still 
on channels 0.17.3, can't upgrade yet because of a Twisted bug).

Thanks!

-- 
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+unsubscr...@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/da8fc1ab-8a75-4504-ab3a-6ab31cfd132e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to