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

grpc-js: Drain incoming http2 data after outputting status #2193

Conversation

murgatroid99
Copy link
Member

This is an attempt to fix the ClientHttp2Stream leak described in #2184. The likely cause of the leak is that stream.close() is called but it still has incoming data waiting to be read so it is never destroyed. This fixes that by putting the stream into flowing mode and discarding all incoming messages after outputting a status. This should have no user-visible effect because the existing code already does not output any messages after outputting a status.

@murgatroid99 murgatroid99 merged commit a5429ad into grpc:@grpc/grpc-js@1.6.x Aug 15, 2022
@MercanAda
Copy link

I observe that someone leaking through my mobile while nearby apps during using. But who is?

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.

None yet

3 participants