Skip to content

[Feature Request] sdk support detecting request's cancellation #129

@tangjz

Description

@tangjz

Due to this pull request moby/moby#35441, now requests to volume plugin may be canceled by client, but sdk here doesn't provide a context for that, which is very risky.

For example, if the timeout duration set by a plugin (e.g. 300s) is longer than that of the daemon (i.e. 60s or 120s depending on request type), and in fact a mount request would cost ~200s, then the plugin may create a mount point successfully while the daemon will regard it as timeout. In that case, an unexpected mount point will be created and become out of control.

Related code:

My opinion:

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