-
Notifications
You must be signed in to change notification settings - Fork 77
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
Bug/Minor: Remove sockpair from HAPROXY_MASTER_CLI #330
base: master
Are you sure you want to change the base?
Conversation
With commit haproxy/haproxy@8a02257 was the `sockpair@` added to the master socket. fix: haproxytech#329
Hey, this will work for sure. But to make a proper fix, we would need to do the following:
With this logic we would be safe that any other sockets, or types of sockets added to the env variable won't break our parsing and we will always use the one we actually need. |
I would also like to add that this code (not the PR itself) would override the dataplaneapi/configure_data_plane.go Lines 123 to 124 in 2e6d658
because Lines 156 to 166 in 2e6d658
So if someone tries to set the I guess it relies on the fact that |
Okay. How should then the |
@georgijd-form3 is right, the IsUnixSocket should be improved to properly check whether the string is unix@, we should check wheter the exists also. If we have multiple sockets set, we should use the first one that is valid. As it is good enough for what we need it for. |
Looks like there is a code which checks if the socket is usable. dataplaneapi/configure_data_plane.go Lines 1014 to 1019 in f36e1ef
maybe there is something similar to |
Hi everyone, Any updates on this? |
With commit haproxy/haproxy@8a02257 was the
sockpair@
added to the master socket.fix: #329