-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elixir-client: ensure monitor + request is atomic (#2151)
It's possible for a process to start a request monitor process but then exit before the actual http request process is started, leaving the monitor process stuck (but still registered under the request id). In this case if a later process tries to make the same request it will find the stuck monitor and register itself with it but no response will arrive (since no request is running). This moves the making of the request into the monitor process so it will always definitely happen. I've also added extra process monitoring so that if the monitor crashes the caller will know about it.
- Loading branch information
1 parent
71b8ab2
commit fc1796a
Showing
4 changed files
with
45 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@core/elixir-client": patch | ||
--- | ||
|
||
Fix stalled elixir client streams by ensuring that requests are always made, even if calling process dies |
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
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