cloudflare / cloudflare/cloudflared

🐛 subdomain multiplexing on 1 connection bugs out some webservers with keep-alive

Open
#767 0 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.