Skip to content

Add more checks for canceled contexts#4960

Merged
MichaelEischer merged 3 commits intorestic:masterfrom
MichaelEischer:reduce-cancelation-delays
Aug 3, 2024
Merged

Add more checks for canceled contexts#4960
MichaelEischer merged 3 commits intorestic:masterfrom
MichaelEischer:reduce-cancelation-delays

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer commented Jul 31, 2024

What does this PR change? What problem does it solve?

Several commands did not promptly react to being canceled and continued for a varying amount of time. This PR adds additional checks for canceled contexts to a bunch of for loops.

Notable mentions are diff, find, ls, stats and rewrite. Several other commands are also modified by this PR but should be less affected.

Was the change previously discussed in an issue or on the forum?

Fixes regressions introduced by #4753
Fixes #4957

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer force-pushed the reduce-cancelation-delays branch from ca32de7 to 1c775fe Compare August 3, 2024 16:13
Copy link
Copy Markdown
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MichaelEischer MichaelEischer merged commit d407abb into restic:master Aug 3, 2024
@MichaelEischer MichaelEischer deleted the reduce-cancelation-delays branch August 3, 2024 16:23
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.

Restic v0.17.0 file listings (ls, find, etc) not responding to SIGINT/TERM

1 participant