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.

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