Hi Patrick,

On Thu, Apr 11, 2019 at 12:18:14PM -0400, Patrick Hemmer wrote:
> With haproxy 1.9.6 the `stats bind-process` directive is not working. Every
> connection to the socket is going to a random process:
> 
> Here's a simple reproduction:
> Config:
>    global
>        nbproc 3
>        stats socket /tmp/haproxy.sock level admin
>        stats bind-process 1
> 
> 
> Testing:
>    # for i in {1..5}; do socat - unix:/tmp/haproxy.sock <<< "show info" |
> grep Pid: ; done
>    Pid: 33371
>    Pid: 33373
>    Pid: 33372
>    Pid: 33373
>    Pid: 33373

This must be pretty annoying. I don't have memories of anything changed
regarding the bind-process stuff between 1.8 and 1.9 (the threads have
moved a lot however). It could be a side effect of some of these changes
though.

However I'm seeing that adding "process 1" on the "stats socket" line
itself fixes the problem. I suspect the issue is located in the propagation
of the frontend's mask to the listener, I'll look at this.

Thanks!
Willy

> 
> -Patrick

Reply via email to