Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swallow BrokenPipeError when writing request body
In the case the server legitimately closes a connection but we are still sending data (e.g. sending a POST request), the old code prevents the response to be retrieved. With this change, we avoid a broken pipe in the request write process to be able to capture the HTTP response. Co-authored-by: Rober Morales-Chaparro <rober.morales@gmail.com> Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com> Co-authored-by: hodbn <hodbn@users.noreply.github.com> Co-authored-by: Quentin Pradet <quentin.pradet@gmail.com>
- Loading branch information
1 parent
ccf9079
commit e4c43f5
Showing
4 changed files
with
78 additions
and
5 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
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