Skip to content
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

Context doesn't cancel if I cancel the api. #82

Open
Roshan-Mehta opened this issue Nov 30, 2023 · 0 comments
Open

Context doesn't cancel if I cancel the api. #82

Roshan-Mehta opened this issue Nov 30, 2023 · 0 comments

Comments

@Roshan-Mehta
Copy link

Roshan-Mehta commented Nov 30, 2023

Let's say I am calling an api "getObject", and after making the request, I press ctrl + c or cancel the request. The code should not execute as the context is canceled.

Expected Behavior

After pressing ctrl + c after api call, code execution should stop immediately.

Current Behavior

Code execution doesn't stop. For some upload requests, it runs for 10 mins.

Possible Solution

Fair use of Golang context should solve this problem

Steps to Reproduce (for bugs)

Context

Regression

Your Environment

  • Version used (minio --version):
  • Server setup and configuration:
  • Operating System and version (uname -a):
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

No branches or pull requests

1 participant