Skip to content

Avoid fatal webseed closes due to bad pieces#4

Merged
mh0lt merged 1 commit intorelease/v1.54from
fix_bad_ws_piece_writes
May 6, 2024
Merged

Avoid fatal webseed closes due to bad pieces#4
mh0lt merged 1 commit intorelease/v1.54from
fix_bad_ws_piece_writes

Conversation

@mh0lt
Copy link
Copy Markdown
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
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