cloudflare / cloudflare/cloudflared
🐛 subdomain multiplexing on 1 connection bugs out some webservers with keep-alive
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Using different subdomains pointing to the same service will multiplex the requests over 1 connection. This bugs out certain webservers + caching mechanisms.
**To Reproduce**
```
config="{"ingress":[
{"hostname":"myservice.mysite.ai", "service":"http://localhost:80"},
{"hostname":"*.myservice.mysite.ai", "originRequest":{}, "service":"http://localhost:80"}
]
```
When we visit `123.myservice.mysite.ai` we get what is hosted on `123` and connection is keep-alive. If we visit now `abc.myservice.mysite.ai` the request goes over the same keep-alive connection that hit `123.myservice.mysite.ai`, a new connection is not created.
This behavior is not present using CloudFlare proxy (2 seperate connections are created), this is solely an issue when tunnel is used.
**Expected behavior**
A separate connection should be opened when the host changes.
**Environment and versions**
- OS: Ubuntu 22.04
- Architecture: AMD64
- Version: 2022.09.1
Contributor guide
Assessment
This issue has not been assessed yet.