]> 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>
Sun, 25 May 2008 12:39:12 +0000 (14:39 +0200)
commitedaf01fc28b6afde5fdace1848d6bb64ca6064a6
treefdd643427401073290c2b8fec8b6dd0db534bcc4
parent144a3d301627a77474303c2211ab2aae8367e601
[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]