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

Consistent locking when logging to H2 session vsl #4095

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

walid-git
Copy link
Member

Currently, some of the logging to the H2 session vsl is done withouth holding the session lock, even when multiple streams are active. This PR is an attempt to make things more consistent in that regard.

Logging to the h2 sess vsl is incosistent. It is sometimes done
while holding the h2 session mutex, and somtimes without it. This
utility function makes sure we take the lock when necessary (when
more than 1 stream have been created).
We already call it in 3 other places without holding the lock,
this will make it easier to handle locking inside h2h_decode_fini
itself.
@nigoroll
Copy link
Member

Wouldn't this deserve a separate lock?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants