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

Avoid fatal webseed closes due to bad pieces #4

Merged
merged 1 commit into from
May 6, 2024

Conversation

mh0lt
Copy link
Collaborator

@mh0lt mh0lt commented May 6, 2024

This fixes an issue whereby webseeds end up persisting bad pieces and hence getting themselves banned because the result handling code ignores the error from the underlying http handler.

The existing code overrides the method are err here:

result, err := part.do()

This is assigned to but does not change the outer function var. This change fixes that by removing the function var returning the err result directly.

@mh0lt mh0lt changed the title add readRequestPartResponses error returns Avoid fatal webseed closes due to bad pieces May 6, 2024
@mh0lt mh0lt merged commit 7f901bc into release/v1.54 May 6, 2024
12 of 16 checks passed
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.

1 participant