Closed alexandresoro closed 2 years ago
I may be missing something but I don’t see why we couldn’t migrate to the native node library. If this is OK, I could have a look and provide a MR.
On second thought, it seems not to be as trivial as I thought, and I saw that there was a WIP to migrate to fastify. It would make more sense to tackle this with this migration maybe…
Glad this issue is resolved
Type: Bug Report
Your Environment
node --version
: 16.14.0, 17.5.0npm --version
: 8+name and version
: anySummary
When launching
flood
with self-signed certificates anduseSsl = true
, assets have difficulty to download and return the following in the browser console:Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR
The consequence is that pages are painful to load and not working as expected.
Issue does not seems to occur with Node <14
Expected Behavior
Web app should load and work similarly as when SSL is not activated
Current Behavior
Web app load breaks because static assets are not properly loaded.
Possible Solution
My understanding is that when SSL is active, the server relies on
spdy
library as web server. I have checked andflood
is using the latest released version. The behavior is similar to the one described here: https://github.com/spdy-http2/node-spdy/issues/380 so I suspect that there is no easy fix.My suggestions would be to find another library as this one does not seem maintained anymore.
It also seems that HTTP/2 and SSL are supported natively by Node as per https://nodejs.org/docs/latest-v16.x/api/http2.html so another solution would be maybe to migrate to this.
Steps to Reproduce
flood
withuseSsl=true
and provide valid certificates (I did it with self-signed)Context