]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[TESTS] add a debug patch to help trigger the stats bug
authorKrzysztof Oledzki <ole@ans.pl>
Mon, 21 Apr 2008 05:28:21 +0000 (07:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Apr 2008 05:31:52 +0000 (07:31 +0200)
commitcdeb9a2002f68737c99c0a0515b143a2810c6dec
treefdd643427401073290c2b8fec8b6dd0db534bcc4
parent8e4b21d5eb9d3084425ffc4e22a2c513c590b517
[TESTS] add a debug patch to help trigger the stats bug

About: [BUG] Flush buffers also where there are exactly 0 bytes left

I'm also attaching a debug patch that helps to trigger this bug.

Without the fix:
# echo -ne "GET /haproxy?stats;csv;norefresh HTTP/1.0\r\n\r\n"|nc 127.0.0.1
801|wc -c
16384

With the fix:
# echo -ne "GET /haproxy?stats;csv;norefresh HTTP/1.0\r\n\r\n"|nc 127.0.0.1
801|wc -c
33089

Best regards,

                                Krzysztof Oledzki
tests/0000-debug-stats.diff [new file with mode: 0644]