Skip to content

Conversation

adev-code
Copy link

Copy from Botocore: boto/botocore#3552

This fix ensures that Ctrl-C and other cancellation signals immediately stop S3 uploads by preventing CancelledError retry loops in the HTTP session, allowing users to terminate operations promptly instead of waiting through lengthy retry cycles. Adding a specific exception handler for CancelledError in httpsession.py that re-raises the error unchanged before it reaches the generic handler. This prevents the cancellation signal from being misclassified as a retryable HTTP error.

Copy link
Member

@ashovlin ashovlin left a comment

Choose a reason for hiding this comment

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

Change looks okay, and the botocore version has been out "baking" for a while.

Can you add a changelog entry?

@adev-code
Copy link
Author

Change looks okay, and the botocore version has been out "baking" for a while.

Can you add a changelog entry?

Added in commit 0620fde

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.

2 participants