Skip to content
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

Be more reslient when identifying PROXY protocol connections #818

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

carlhoerberg
Copy link
Member

PROXY protocol connections are sniffed in clustering mode, so that followers can forward traffic to the leader. A IndexError was raised when a client opened a connections but didn't send a full 5 or 8 bytes (eg. opening and closing the connection for healtcheck). This patch fixes that bug, and also only check for PROXY protocol connections if clustering is enabled at all.

Fixes #803

PROXY protocol connections are sniffed in clustering mode, so that
followers can forward traffic to the leader. A IndexError was raised
when a client opened a connections but didn't send a full 5 or 8 bytes
(eg. opening and closing the connection for healtcheck). This patch
fixes that bug, and also only check for PROXY protocol connections if
clustering is enabled at all.
@carlhoerberg carlhoerberg requested a review from a team as a code owner October 26, 2024 19:58
@carlhoerberg carlhoerberg added this to the v2.0.0-rc.5 milestone Oct 27, 2024
@carlhoerberg carlhoerberg merged commit 1dbac3b into main Oct 28, 2024
24 of 25 checks passed
@carlhoerberg carlhoerberg deleted the proxy-protocol-bug branch October 28, 2024 13:40
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