You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
Here is the expected behavior. When using const usesHttp2 = false;, we have the expected behavior with the "https" module.
What do you see instead?
With the "http2" module, we have the following when const usesHttp2 = true;.
When the first POST, the server never returns the posted image and callbacks for on("close") and on("end") are not called. But, when you push the "post" button again, the first data are returned and the image is displayed.
In summary, a handler with "https" works well, but the handler with "http2" doesn't work well.
The text was updated successfully, but these errors were encountered:
nwtgck
changed the title
Posted body to a "http2" server are not "end" or "close"
Request to HTTP/2 server is not handled on("end") or on("close"), and behave differently from HTTP/1
Jun 7, 2020
We still have this problem with Node.js (v12.18.3).
I found Firefox can upload but it's very delayed to display echoed image. Here is a demo on Firefox (79.0 (64-bit)).
Demo: https://youtu.be/ppWf687tIzU
What steps will reproduce the bug?
Here is a simple echo server: return posted data to the client. This reproducing program runs locally.
After run, you can access to https://localhost:8443/ on your browser.
You can create
server.key
andserver.crt
as follows.How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
Here is the expected behavior. When using
const usesHttp2 = false;
, we have the expected behavior with the "https" module.What do you see instead?
With the "http2" module, we have the following when
const usesHttp2 = true;
.When the first POST, the server never returns the posted image and callbacks for
on("close")
andon("end")
are not called. But, when you push the "post" button again, the first data are returned and the image is displayed.In summary, a handler with "https" works well, but the handler with "http2" doesn't work well.
Additional information
This behavior is reproduced on Google Chrome and Firefox. The posted image is https://en.wikipedia.org/wiki/File:Lenna_(test_image).png#file.
Maybe related: #32978
The text was updated successfully, but these errors were encountered: