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

http/2, upload handling improvements #11165

Closed
wants to merge 2 commits into from

Conversation

icing
Copy link
Contributor

@icing icing commented May 20, 2023

Make send buffer smaller to have progress and "upload done" reporting closer to reality. Fix handling of send "drain" condition to no longer trigger once the transfer loop reports it is done sending. Also do not trigger the send "drain" on RST streams.

Background:

Make send buffer smaller to have progress and "upload done"
reporting closer to reality. Fix handling of send "drain"
condition to no longer trigger once the transfer loop
reports it is done sending. Also do not trigger the send
"drain" on RST streams.

Background:
- a upload stall was reported in curl#11157 that timed out
- test_07_33a reproduces a problem with such a stall if the
  server 404s the request and RSTs the stream.
- test_07_33b verifies a successful PUT, using the parameters
  from curl#11157 and checks success
@bagder bagder closed this in 0cab135 May 20, 2023
@bagder
Copy link
Member

bagder commented May 20, 2023

Thanks!

bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
Make send buffer smaller to have progress and "upload done" reporting
closer to reality. Fix handling of send "drain" condition to no longer
trigger once the transfer loop reports it is done sending. Also do not
trigger the send "drain" on RST streams.

Background:
- a upload stall was reported in curl#11157 that timed out
- test_07_33a reproduces a problem with such a stall if the
  server 404s the request and RSTs the stream.
- test_07_33b verifies a successful PUT, using the parameters
  from curl#11157 and checks success

Ref: curl#11157
Closes curl#11165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants