Skip to content

SERVER-120105 Expose pre-TLS trait on listeners#2

Merged
varunravi98 merged 1 commit intomainfrom
varunravi98/SERVER-120105
Mar 12, 2026
Merged

SERVER-120105 Expose pre-TLS trait on listeners#2
varunravi98 merged 1 commit intomainfrom
varunravi98/SERVER-120105

Conversation

@varunravi98
Copy link
Copy Markdown
Collaborator

No description provided.

@varunravi98
Copy link
Copy Markdown
Collaborator Author

This is heavily inspired by this PR that is yet to be merged in Pingora upstream but was clearly added with the intent of supporting the proxy protocol.

I could include proxy protocol changes into our Pingora fork, too, but I figured I might as well keep that within monguard to keep this as close to Pingora upstream as possible. This should be enough for me to build a quick proxy protocol parsing library that a struct implementing InspectPreTls can use.

Copy link
Copy Markdown
Collaborator

@ryanberryhill ryanberryhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This doesn't need to be discussed here, but I think we should have a plan to upstream things like this if we don't already.

Comment on lines +390 to +391
let addr1 = "127.0.0.1:7107";
let addr2 = "127.0.0.1:7108";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I ran the listener tests locally, this test and this test failed due to port conflicts. I'm not sure exactly where and how Pingora runs these tests internally (e.g., do they make sure they run serially so this doesn't happen?) but I thought I'd just change the ports so that we can run cargo test -p pingora-core without seeing a failure here.

@varunravi98 varunravi98 merged commit 30a21e4 into main Mar 12, 2026
@varunravi98 varunravi98 deleted the varunravi98/SERVER-120105 branch March 12, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants