Hi Toby,

Do you have the latest versions of daphne, channels, asgiref and
channels_redis? This sounds supiciously like a bug I fixed a couple weeks
ago.

Andrew

On Thu, Mar 1, 2018 at 5:45 AM, <[email protected]> wrote:

> Hello,
>
> I have a project that uses Channels as a worker queue, with a SyncConsumer
> that runs a heavy computation task. This works great.
>
> I transitioned the project to have a 'task in process' page that opens a
> websocket and through the magic of channel's groups it gets pushed the
> computation updates as they happen. This works great.
>
> I'm now transitioning the project to be a single-page-app that
> communicates via a websocket. Using `runserver`, this works great, the
> websocket stays open. However, the messages from the SyncConsumer stop
> after a few seconds. I've established that time is whatever the value of
> `websocket_handshake_timeout` is, but this doesn't make sense to me AFAIK
> as the channel_layer is independent from the JsonWebsocketConsumer
> instance, and the websocket is happily connected and still passing messages.
>
> Any ideas? Is this a bug or am I doing something wrong?
>
> Thanks,
>
> Toby
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/a329b26e-89f5-42d1-86b2-28ad1c85bb90%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a329b26e-89f5-42d1-86b2-28ad1c85bb90%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To post to this group, send email to [email protected].
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/CAFwN1upW8q-vLWMpZ7-sMoj1b61uyrPMgV7V8PS2AX0zjqSO4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to