-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to reduce risk of EOF error with POST requests (#211)
- Add a txcount field to the Request struct - Increment txcount after the body is written - Modify RetryRequest.isrecoverable to allow retry of non-idempotent requests if txcount is zero. - Modify StreamRequest to Wait for other pipelined reads to complete before sending a non-idempotent request body. This should decrease the chance of sending a POST body that ends up failing and can't be retried. - Remove yeild() after @async writebody. This should increase the chance that the startread() realises that the connection is dead before the body is written. Depends on: JuliaLang/MbedTLS.jl#124
- Loading branch information
1 parent
72dde3c
commit b602c4e
Showing
4 changed files
with
21 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
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