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

Retry the streaming portion of downloads, as well as the setup. (Cherry-pick of #17298) #17302

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Oct 21, 2022

As reported in #17294, if an HTTP stream is interrupted after it has opened, the retry that was added in #16798 won't kick in.

This change moves the retry up a level to wrap the entire download attempt, and adds a test of recovering from "post-header" errors.

Fixes #17294.

@stuhood stuhood added the category:bugfix Bug fixes for released features label Oct 21, 2022
@stuhood

This comment was marked as resolved.

@stuhood stuhood force-pushed the cherry-pick-17298-to-2.14.x branch 2 times, most recently from 8f830db to 4015bef Compare October 21, 2022 18:14
@stuhood stuhood marked this pull request as draft October 21, 2022 18:23
…sbuild#17298)

As reported in pantsbuild#17294, if an HTTP stream is interrupted after it has opened, the retry that was added in pantsbuild#16798 won't kick in.

This change moves the retry up a level to wrap the entire download attempt, and adds a test of recovering from "post-header" errors.

Fixes pantsbuild#17294.

[ci skip-build-wheels]
@stuhood stuhood marked this pull request as ready for review October 21, 2022 21:55
@stuhood stuhood merged commit 6bffee3 into pantsbuild:2.14.x Oct 21, 2022
@stuhood stuhood deleted the cherry-pick-17298-to-2.14.x branch October 21, 2022 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants