-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(ext/node): send data frame with end_stream flag on _final call #24147
Conversation
Just wanted to report:
Otherwise, it works with my provided deno script: I will try to port |
Can you open a separate issue with debug (use
gRPC package depends on |
Thanks for your reply. This is the log from
I am also pasting the similar section of the log from the working
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I looked into the issue that I posted earlier. It seems that when there are multiple chunks in the response, Deno is getting stuck here after the last chunk. deno/ext/node/polyfills/http2.ts Lines 1009 to 1012 in 8cbf81c
That means, the Lines 455 to 477 in 8cbf81c
|
We previously ended the http2 stream by sending trailers which should have been only used if waitForTrailers option is set on the http2session. This patch updates it and ends the stream by sending an empty data frame with end_stream flag set or by emitting 'wantTrailers' event if waitForTrailers option is set.
Hard to create an unit test as this requires that a test server needs to ack end of stream flag and then process a request. The example from #24058 works.
Closes #24058