-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ar_http client was using internal functions from inet (`inet:start_timer/1` and `inet:stop_timer/1`). Those functions are wrapper around `timer` module and send a message to the current active process doing the http request. Unfortunately, this is not compatible with gun:await/3 function and breaks its loop. Gun messages are after send to the active process. This commit also enforce request cancellation when something goes wrong (error/timeout) to avoid leaking messages coming in the current process.
- Loading branch information
humaite
committed
Dec 3, 2024
1 parent
5f4544a
commit e7042b4
Showing
3 changed files
with
35 additions
and
29 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
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