-
Notifications
You must be signed in to change notification settings - Fork 381
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
Avoid deadlock between Close when offset-modifying operation is still pending #604
Conversation
Compared to current
Windows shows similar improvements:
(This is the same machine WSL vs native windows running from WSL… and the tempdir for windows is actually on a windows drive, so it’s not like it’s having to translate from a Windows |
Performance on macOS ARM is pretty much equivalent:
|
…pack the relevant field that we're actually interested in
There are a few fixes mixed in with solely addressing the deadlock. I still need to test this, but I needed a branch to test.
The change has to plumb a channel through to
clientConn
where it it performs the actual writing of the request to the outbound writer. As a result, I’m unsure how feasible it would be to get the same sort of logic rolled out on v1. I know where I would start, and that’s the new timebox for after when I test this one. If it becomes a giant mess of tangles, I’ll back out, and we’ll accept that the previous behavior “just happened to work, but was never guaranteed to work.”fixes: #603