Commit 7db24f4
BUG/MEDIUM: runtime: Strip unix@ from master cli socket
When the master cli is configured as a unix socket HAProxy is sending
the path to the master cli as "unix@/path/to/master.sock" within the
environment variable HAPROXY_MASTER_CLI. The Data Plane API is then
trying to take this string and connect to it without stripping the 'unix@'
portion off. This causes an error during connect() as seen in the below strace:
[pid 17968] connect(14, {sa_family=AF_UNIX, sun_path="unix@/tmp/master.sock"}, 24) = -1 ENOENT (No such file or directory)
This should be the path only "/tmp/master.sock" and not "unix@/tmp/master.sock".
This issue was also referenced in #50 but the work around ended up being
to remove use of the master cli completely.
This commit fixes the underlying issue and strips 'unix@' from the socket
path allowing for the master cli to be used.1 parent d3d5f6b commit 7db24f4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments