Justin Karneges

Results 129 comments of Justin Karneges

I wonder if Djoser is buffering the response?

Hmm, so the chat example works when connected to via the client code served by the app, but not when connecting to it from client code not served by the...

If Nginx is in front, you definitely need to disable buffering. I'm not seeing gzip when testing directly against Daphne. Maybe that's coming from Nginx also?

Ah, I just remembered django-eventstream does set `X-Accel-Buffering: no` to supposedly disable Nginx buffering. Maybe that part is working, and the issue is compression?

Hi, make sure the client connects to Pushpin. :)

Are you still experiencing this issue? `send_event` returns quickly, so I'm not sure how it would block other activities such as page loads.

Weird. Are you using daphne to handle SSL? Or some proxy in front of daphne?

Ah, that's probably because the celery worker is a separate process. In order to send from multiple processes, you'll need to put Pushpin in front. See https://github.com/fanout/django-eventstream#multiple-instances-and-scaling.

I use a circular buffer too, and I always wished httparse could parse from multiple source slices. It might be possible to do it in a way that avoids copying,...

Hi, in production are you running multiple servers/processes?