Skip to content

go: libproxy: don't hold the metadata mutex while writing#616

Merged
djs55 merged 1 commit intomoby:masterfrom
djs55:mutex
Feb 13, 2023
Merged

go: libproxy: don't hold the metadata mutex while writing#616
djs55 merged 1 commit intomoby:masterfrom
djs55:mutex

Conversation

@djs55
Copy link
Copy Markdown
Collaborator

@djs55 djs55 commented Feb 11, 2023

The sendWindowUpdate function acquires the writeMutex and writes to the channel. Since Accept() holds the metadataMutex, this prevents processing other connections.

In all other places we carefully drop the metadata mutex before writing. Accept was an oversight.

Signed-off-by: David Scott dave@recoil.org

The `sendWindowUpdate` function acquires the `writeMutex` and writes
to the channel. Since `Accept()` holds the `metadataMutex`, this
prevents processing other connections.

In all other places we carefully drop the metadata mutex before writing.
Accept was an oversight.

Signed-off-by: David Scott <dave@recoil.org>
@djs55 djs55 merged commit fa3fe01 into moby:master Feb 13, 2023
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

Successfully merging this pull request may close these issues.

1 participant