-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add transparent HTTP/2 with spdy module #70
Conversation
Nice! Very cool and surprisingly small change! Thanks a lot. Would you mind adding a quick sanity check for this? I don't think we need to call all |
Very nice indeed! |
It seems like SPDY is dying though: Chrome killed it in 2015, Firefox in 2016, so support is lacking. The npm package hasn't seen an update in a year. Could you add support for HTTP/2 instead maybe? @jankeromnes Maybe you could help with the tests? |
@espadrine Although this package is called spdy, it just supports H2 as well. |
@ishitatsuyuki My main worry is that the spdy package is likely to be deprecated in favour of the built-in HTTP/2 Node.js module (if it is not already so in the minds of the makers). So we may not receive security updates or other important update (or any update at all). |
@espadrine What I can say is that the official H2 module doesn't expose the |
Good points! We'll figure out solutions to the http2 ordeal when it comes out of experimental status. |
@jankeromnes Would you be interested in contributing related tests as a follow-uip? |
@espadrine I won't have time to look into this anytime soon, sorry. Thanks for merging! And thanks @ishitatsuyuki for implementing this! 💯 |
@ishitatsuyuki Hello! The SPDY module now crashes because of this 6-month old bug: spdy-http2/node-spdy#350 I am considering reverting this patch. Do you know a better solution by any chance? |
It seems Node have implemented HTTP/2 as a reasonable built-in. I will do a rewrite this weekend. |
Actually no, please revert this. Node ecosystem seems to have a number of bugs with the HTTP/2 module due to the class usage. (Additionally, They're listed in expressjs/express#3730, for reference. |
This adds an opt-out based HTTP/2 support based on node-spdy. It's tested on many Node version including 0.10, so there shouldn't be much risk of breakage.