On Fri, 20 Jul 2018 at 14:36, Milan Petruželka <[email protected]> wrote:
>
> I've applied both patches to vanilla haproxy 1.8.12. I'll leave it running
> and report back.
>
>
Hi,
After weekend CLOSE_WAIT connections are still there. What
does cflg=0x80203300 in "show fd" mean? FDs with cflg=0x80203300 are either
CLOSE_WAIT or "sock - protocol: TCP" - see FDs 14, 15, 16, 18, 19 and 25 in
following dumps. And - sockets in lsof state "sock - protocol: TCP" can't
be found in netstat.
SHOW FD 3300
14 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23d0340
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x2494cc0
15 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x245c6f0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x23c1db0
16 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x25598e0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x23d0900
18 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23940a0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x242a030
19 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x24a8b90
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x24820b0
25 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x2457a10
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x2394660
LSOF
haproxy 31313 haproxy 0u CHR 136,1 0t0 4
/dev/pts/1
haproxy 31313 haproxy 1w FIFO 0,10 0t0 2004495
pipe
haproxy 31313 haproxy 2w FIFO 0,10 0t0 2004495
pipe
haproxy 31313 haproxy 3u a_inode 0,11 0 7017
[eventpoll]
haproxy 31313 haproxy 4u unix 0xffff88042aa3b400 0t0 2002869
/www/server/haproxy/cmd.sock.31313.tmp type=STREAM
haproxy 31313 haproxy 5u IPv4 2002872 0t0 TCP
some.ip:http (LISTEN)
haproxy 31313 haproxy 6u IPv4 2002873 0t0 TCP
some.ip:https (LISTEN)
haproxy 31313 haproxy 7u IPv4 2002874 0t0 TCP
*:http-alt (LISTEN)
haproxy 31313 haproxy 8u IPv4 2002875 0t0 TCP
*:8443 (LISTEN)
haproxy 31313 haproxy 9r FIFO 0,10 0t0 2002876
pipe
haproxy 31313 haproxy 10w FIFO 0,10 0t0 2002876
pipe
haproxy 31313 haproxy 11u IPv4 6560416 0t0 TCP
some.ip:https->some.ip:49375 (ESTABLISHED)
haproxy 31313 haproxy 12u IPv4 2002883 0t0 UDP
*:52068
haproxy 31313 haproxy 13u IPv4 6656750 0t0 TCP
some.ip:https->some.ip:50544 (ESTABLISHED)
haproxy 31313 haproxy 14u IPv4 4951212 0t0 TCP
some.ip:https->some.ip:55554 (CLOSE_WAIT)
haproxy 31313 haproxy 15u sock 0,8 0t0 4111815
protocol: TCP
haproxy 31313 haproxy 16u sock 0,8 0t0 6236118
protocol: TCP
haproxy 31313 haproxy 17u IPv4 6657419 0t0 TCP
some.ip:https->some.ip:64934 (ESTABLISHED)
haproxy 31313 haproxy 18u sock 0,8 0t0 2653890
protocol: TCP
haproxy 31313 haproxy 19u IPv4 5699053 0t0 TCP
some.ip:https->some.ip:59601 (CLOSE_WAIT)
haproxy 31313 haproxy 20u IPv4 6656756 0t0 TCP
some.ip:https->some.ip:29233 (ESTABLISHED)
haproxy 31313 haproxy 21u IPv4 6656760 0t0 TCP
some.ip:https->some.ip:59058 (ESTABLISHED)
haproxy 31313 haproxy 22u IPv4 6654620 0t0 TCP
some.ip:https->some.ip:49306 (ESTABLISHED)
haproxy 31313 haproxy 23u IPv4 6656769 0t0 TCP
some.ip:https->some.ip:17513 (ESTABLISHED)
haproxy 31313 haproxy 25u IPv4 5873818 0t0 TCP
some.ip:https->some.ip:58413 (CLOSE_WAIT)
haproxy 31313 haproxy 26u unix 0xffff8802f9240000 0t0 6656772
type=STREAM
haproxy 31313 haproxy 27u IPv4 6656639 0t0 TCP
some.ip:https->some.ip:2926 (ESTABLISHED)
SHOW FD
4 : st=0x05(R:PrA W:pra) ev=0x01(heopI) [nlc] cache=0 owner=0x232ac80
iocb=0x4c0be0(listener_accept) tmask=0xffffffffffffffff
umask=0xfffffffffffffffe l.st=RDY fe=GLOBAL
5 : st=0x05(R:PrA W:pra) ev=0x01(heopI) [nlc] cache=0 owner=0x232ce80
iocb=0x4c0be0(listener_accept) tmask=0xffffffffffffffff
umask=0xfffffffffffffffe l.st=RDY fe=fe-http
6 : st=0x05(R:PrA W:pra) ev=0x01(heopI) [nlc] cache=0 owner=0x232d390
iocb=0x4c0be0(listener_accept) tmask=0xffffffffffffffff
umask=0xfffffffffffffffe l.st=RDY fe=fe-http
7 : st=0x05(R:PrA W:pra) ev=0x01(heopI) [nlc] cache=0 owner=0x234cb00
iocb=0x4c0be0(listener_accept) tmask=0xffffffffffffffff
umask=0xfffffffffffffffe l.st=RDY fe=fe-service
8 : st=0x05(R:PrA W:pra) ev=0x00(heopi) [nlc] cache=0 owner=0x234d010
iocb=0x4c0be0(listener_accept) tmask=0xffffffffffffffff
umask=0xfffffffffffffffe l.st=RDY fe=fe-service
9 : st=0x05(R:PrA W:pra) ev=0x00(heopi) [nlc] cache=0 owner=0x4e9260
iocb=0x4e9260(thread_sync_io_handler) tmask=0xffffffffffffffff
umask=0xfffffffffffffffe
11 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x25be850
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x2480820
13 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x24283d0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x25c47e0
14 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23d0340
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x2494cc0
15 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x245c6f0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x23c1db0
16 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x25598e0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x23d0900
17 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x25c35f0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x2585d80
18 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23940a0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x242a030
19 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x24a8b90
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x24820b0
20 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x25c3460
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x23b76f0
21 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23bc6e0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x23cd7b0
22 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x2570b30
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x23be980
23 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23b78b0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=PASS mux_ctx=0x245d0e0
24 : st=0x22(R:pRa W:pRa) ev=0x00(heopi) [Nlc] cache=0 owner=0x25c3910
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x00241300
fe=GLOBAL mux=PASS mux_ctx=0x245bf00
25 : st=0x20(R:pra W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x2457a10
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203300
fe=fe-http mux=H2 mux_ctx=0x2394660
26 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x257a510
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x00202306
sv=nginx01/be-nginx01 mux=PASS mux_ctx=0x23b4110
27 : st=0x25(R:PrA W:pRa) ev=0x00(heopi) [nlc] cache=0 owner=0x23be2d0
iocb=0x4d4c90(conn_fd_handler) tmask=0x1 umask=0x0 cflg=0x80203306
fe=fe-http mux=H2 mux_ctx=0x23c5d50
Milan