Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.
This repository was archived by the owner on Dec 21, 2022. It is now read-only.

Thread safety in HostContext. #22

@jonathanslenders

Description

@jonathanslenders

When multiple threads act on the same host, (That is exceptional, it doesn't happen in our own deployment, but it can happen.), and threads change the context by executing a with cd-command, this context is changed in the other threads as well.

The solution is probably to clone the hosts contexts as soon as a new thread i created, or to make it immutable, and copy it around in the Env object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions