-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Regression: PROXY protocol line sent only when first data arrives from client #212
Comments
Ah, sorry about that. We are refactoring the matching/peeking logic and it is still undergoing some improvements. @ydylla amd @WeidiDeng are working on it and I am behind on reviewing their patches 😅 |
No worries, we reverted to 145ec36 after we understood the problem, this was more a heads-up for you if this was unintended and maybe for other users if they also encounter a similar issue. |
Hi, To fix this for at least some simple configs, we could likely add a special case that detects if the config has only one possible route (without matchers) and then don't call |
We have a similar problem. Also when trying to proxy smtp traffic. Our config looks like this:
@ydylla: as we do not use any matcher here..any idea what this causes? |
@WeidiDeng ah okay, thanks! |
We have noticed a regression between 145ec36 and ca3e2f3 when using
proxy_protocol
.In 145ec36 the
PROXY
protocol line would be sent directly on connection from Caddy to the backend. In ca3e2f3 it seems thePROXY
protocol line is sent to the backend only when the client connected to Caddy sends data.This is problematic with Exim at least, as the SMTP protocol with PROXY (or at least the EXIM implementation of it) expects the mail server/backend to first receive the
PROXY
line, then answers with the version and host information of the mail server/backend, and then expects aHELO
,EHLO
or the like. Sending thePROXY
line with the first line the client sends breaks this dance.The text was updated successfully, but these errors were encountered: