Thursday, March 29, 2018

Re: Does Daphne of Django Channels send out a heartbeat to keep the connection alive?

The underlying Daphne code will send PING requests to the client periodically, adjustable with --ping-interval. If it doesn't get a response back before --ping-timeout, it will close the connection.

Heroku have their own loadbalancer, so it's possible that is changing how the sockets behave.

Andrew

On Thu, Mar 29, 2018 at 7:52 AM, lakeshow <sjung2393@gmail.com> wrote:
Is this even done server side?  Or does it need to be implemented with js for the client?  

I ask because it appears that my connection repeatedly before or during the attempt to connect. It only happens when uploaded to Heroku's servers as well.    




--
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/0829ae5b-c03b-44f1-b8de-9c237153bc59%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/CAFwN1uoQNjOyBZ%3DiEJ%2BiV6mExPdMLQNKr4KiYdfLifWiwpooLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment