Repository navigation
chore: cleanup grpchijacked connections - #6597
Conversation
There is a comment suggesting this? I'm not quite sure why it's not turned on, it definitely feels important. This also clogs up every stack dump, with literally thousands of copies, since it never closes. Signed-off-by: Justin Chadwell <[email protected]>
sipsma
left a comment
There was a problem hiding this comment.
Sorry that comment was very much a temporary note while working on that massive first Zenith PR that made it through to main on accident, should have been fixed up before merge 😞
But "this blocks if opts.RegisterClient and an error happens" was saying that conn.Close() would just block indefinitely in that case where the client is registering itself and an error occurred. Looking again though you're right though that it's gonna leak goroutines, so we can't just not close it.
IIRC it was happening at the time a lot in tests (not some obscure thing), but it's highly possible whatever case I hit where it blocked previously is no longer relevant after all the changes since that time. So If tests pass then LGTM!
|
Hm, from when this merged we started seeing timeouts in |
There is a comment suggesting this? I'm not quite sure why it's not turned on, it definitely feels important.
This also clogs up every stack dump, with literally thousands of copies, since it never closes.
@sipsma is there a good reason to not do this? The stream connection can never outlive this
Sessioncall, so we should just be able to call this.