Skip to content

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

@Roshan-Mehta

Description

@Roshan-Mehta

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions