@sagaxu wrote:
Hi guys,
I have installed haproxy 1.8.1, and here is my configuration file.
global daemon maxconn 100 master-worker no-exit-on-failure defaults mode http timeout connect 5000ms timeout client 50000ms timeout server 50000ms backend gateway balance roundrobin server server1 172.16.0.42:8088 frontend gateway bind unix@/tmp/gateway.socket default_backend gateway
I can connect to /tmp/gateway.socket with netcat.
Then I reload the worker by send a SIGUSR2 to the master process.
I can’t connect to /tmp/gateway.socket after the reloading.The listen socket fd was the same as stdout.
lrwx------ 1 sagaxu sagaxu 64 Dec 21 18:07 0 -> anon_inode:[eventpoll] lrwx------ 1 sagaxu sagaxu 64 Dec 21 18:07 1 -> socket:[17192229] lr-x------ 1 sagaxu sagaxu 64 Dec 21 18:07 5 -> pipe:[17154247] l-wx------ 1 sagaxu sagaxu 64 Dec 21 18:07 6 -> pipe:[17154247]
It was probably closed by the fclose clauses in haproxy.c
fclose(stdin); fclose(stdout); fclose(stderr);
thanks for your attention.
Posts: 1
Participants: 1