-
Notifications
You must be signed in to change notification settings - Fork 16
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
multiple sync http2 requests lead to multiple connections instead of reusing #39
Comments
That's likely a bug, if the ALPN negotiation results in http2. The flow is supposed to be that when an origin (in your case I'll look into this. |
Ah, makes sense. Everything works great otherwise. Loving it. Btw - I think the stuck references not being cleared by disconnectAll is a different issue. I've been running into it separate from what I described above. And totally unrelated, but what's stopping this from node 8 support? Have you looked into porting the node10 http2.js back or something? AWS lambda doesn't have v10 yet. I can get fetch-h2 mostly running under node 8 via rollup except for http2. |
Yeah http1 probably works in Node 8, but since the library started with (only) http2, I don't want to claim it in the readme. Anyway, it's pretty sad we don't have Node 10-support in AWS lambdas, shame on them ;) On the other hand, you can upload binaries in lambdas, e.g. Node 10 😆 |
🎉 This issue has been resolved in version 2.4.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
i don't know enough about the fetch spec to say if this is a bug or not but it's definitely not what i expected.
this code below causes 10 separate connections. i'd expect what to happen in this situation is the first request blocks the others until the connection is established and they all share it.
additionally, this causes something to be off with a stuck reference or something. "complete" is printed but the process never exits.
blocking with an initial call fixes issue:
That results in just one connection being used and the process exiting as expected. It seems related to getOrCreateHttp2 but not sure. 😪 🛏
The text was updated successfully, but these errors were encountered: