Skip to content

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.

2 participants