-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(phoenix-channel): fail on missing heartbeat after 5s (#4296)
This PR fixes a bug and adds a missing feature to `phoenix-channel`. 1. Previously, we used to erroneously reset the heartbeat state on all sorts of empty replies, not just the specific one from the heartbeat. 2. We only failed on missing heartbeats when it was time to send the next one. With this PR, we correct the first bug and add a dedicated timeout of 5s for the heartbeat reply.
- Loading branch information
1 parent
b113a7c
commit ecce024
Showing
2 changed files
with
120 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters