-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(event-stream): don't send a message if we're stopping immediately
Related to mtrudel/bandit#141, we get into this situation when we close the connection before truly entering the hibernate loop. Instead, we close/unsubscribe directly, and return the conn immediately. Sample error from `api-prod` (truncated): ``` Bandit.HTTP1.Handler #PID<0.5319.7> received unexpected message in handle_info/2: {:close, <conn>} ```
- Loading branch information
1 parent
d0f0c86
commit 557dac4
Showing
2 changed files
with
12 additions
and
7 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