-
Notifications
You must be signed in to change notification settings - Fork 15
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
Concurrent HTTP/2 requests to different hosts sharing the same IP address return the same response for all requests #110
Comments
Thanks for a great bug report 👌 However, I don't think this is a bug in fetch-h2 but rather in the server.
so every concurrent call to *.hlx.page should re-use the same socket. However, that's not the problem here, the problem is that the server looks at the
This part; Clients that generate HTTP/2 requests directly SHOULD use the :authority pseudo-header field instead of the Host header field. This means that a server which understands HTTP/2, and which uses the hostname to figure out what to do, must look at the
I'm closing this because I'm relatively sure fetch-h2 is doing the right thing here (since #9), but if this appears as a problem for many servers, perhaps also sending a |
I am pretty sure it's not a server issue. The server is Fastly (CDN).
No, the I believe the problem is that There might also be a problem with subdomains sharing the same IP address. It's common that different subdomains share the same IP address (e.g. Maybe sessions are internally identified by IP address & port instead of Please consider reopening this issue. |
I just wrote a test against github.io (github pages) and you seem to be right. That's certainly not good! |
I think I've fixed this now, but testing against hlx.page is really slow (takes 3-4 seconds to read the text), and concurrent requests stall. I'm not sure why this happens, it works well for concurrent |
🎉 This issue has been resolved in version 2.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Concurrent requests to subdomains resolving to the same IP address, e.g.
return the same response for all requests.
The problem only occurs when using HTTP/2.
To reproduce:
Running the above code will output identical md5 hash values for both responses.
Workarounds:
HTTP1(.1)
protocol:Host
header:The text was updated successfully, but these errors were encountered: