Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to reduce risk of EOF error with POST requests #211

Merged
merged 1 commit into from
Mar 2, 2018

Conversation

samoconnor
Copy link
Contributor

  • 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: Try to fix deadlock JuliaLang/MbedTLS.jl#124

- 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
@samoconnor
Copy link
Contributor Author

1560 passed, 0 failed, 2 errored, 0 broken.

These are the two https POST tests that fail because of JuliaLang/MbedTLS.jl#124

@quinnj quinnj closed this Mar 2, 2018
@quinnj quinnj reopened this Mar 2, 2018
@quinnj quinnj merged commit b602c4e into master Mar 2, 2018
@quinnj
Copy link
Member

quinnj commented Mar 2, 2018

0.6 tests all pass w/ the new MbedTLS tag; 0.7 failures are unrelated (moving Sockets out of Base)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants