-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix S3 not interruptting #12227
base: master
Are you sure you want to change the base?
Fix S3 not interruptting #12227
Conversation
AFAIK Curl transfers are interruptible already.
IMHO this patch does not make S3 transfers interruptible because it can't interrupt running transfer. |
This PR didn't work for me, at least this command:
still doesn't respond to Ctrl-C. Note that src/libstore/filetransfer.cc isn't involved in S3 transfers since aws-sdk-cpp uses libcurl directly. Since |
Yeah, I think the best option might actually be to implement an HTTP client using AWS's API for one and then we could throw some |
I have this code, which might fix the issue. But I cannot test it. It's not ready to be merged yet, e.g. aborting multipart uploads might also be possible with |
Apparently aws-cpp-sdk has a |
I've started overriding the |
ec286ca
to
ee4d227
Compare
I pushed my current progress on it, still figuring out how |
Motivation
Fixes #11678
Context
This is my attempt to try and get S3 transfers to interrupt properly. The only problem now is retrying doesn't interrupt but it seems the retry strategy doesn't work if you don't already have a connection.
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.