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

feat: Promote rpxy-lib/sticky-cookie to top-level feature and fix compile warnings when disabled #213

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

xkr47
Copy link
Contributor

@xkr47 xkr47 commented Nov 2, 2024

I (feel I) don't need the sticky-cookie feature, but it wasn't available as a feature in rpxy-bin.. so I added a sticky-cookie feature and made it propagate the feature flag to rpxy-lib. I also added it to the default set of features. I then disabled the feature and tried compiling the code. I made necessary fixes to get rid of all warnings I encountered, but didn't commit actually disabling the feature.

I don't know if something will break if I don't have sticky cookies, but so far everything has worked fine. I don't use load balancing features, so I only ever have exactly one upstream configured per reverse_proxy configuration.

So I don't know if you actually want to promote the sticky-cookies as a top-level feature you can disable. I could understand for example if extra code would be required to verify that exactly one upstream is configured in case it is disabled. If it's easy to do I can try to fix it.

Nevertheless I throw stuff here that I implement and think might be remotely interesting to somebody. I don't mind if you don't want it merged. I'll keep using it :)

.. and fix compile warnings when disabled
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.

1 participant