]> git.kaiwu.me - 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:26 +0000 (07:31 +0200)
commitc2218056fd7500916a428a4da3d5888219a1fcac
tree620f35116fe81f05e53e191e8f36bb660f8e15a9
parentf86aac797720c80d9660e7d79cd532e296bac7c2
[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]