Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaving channel causes timeout #86

Open
Maradox opened this issue Aug 26, 2021 · 5 comments
Open

Leaving channel causes timeout #86

Maradox opened this issue Aug 26, 2021 · 5 comments

Comments

@Maradox
Copy link

Maradox commented Aug 26, 2021

When leaving a channel I receive immediately the events:

Receive: {"event":"phx_reply","payload":{"response":{},"status":"ok"},"ref":"10","topic":"my_topic"}
Receive: {"event":"phx_close","payload":{},"ref":"7","topic":"my_topic"}

However, channel.onClose() is triggered 10 seconds later due to timeout. This happens everytime.

@dsrees
Copy link
Owner

dsrees commented Aug 27, 2021

are you removing the channel from the socket as well?

channel.leave()
socket.remove(channel)

@Maradox
Copy link
Author

Maradox commented Aug 30, 2021

Yes, I also remove the channel.

@ankushaspiring
Copy link

@dsrees Is there an update on this Since we are also facing this issue??

@dsrees
Copy link
Owner

dsrees commented Sep 9, 2022

There is not. If you have time and want to investigate and submit a PR, I will gladly review it

@ankushaspiring
Copy link

@dsrees If there is no activity on the fragment/activity , channels gets close(not sure why) which in turn closes the socket, then socket gets open again by the phoenix client, but why does it gets close every time after some n secs, also is there a way to increase this time limit. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants