]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http chunking: don't report a parsing error on connection errors
authorWilly Tarreau <w@1wt.eu>
Sun, 12 Dec 2010 11:50:05 +0000 (12:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 12 Dec 2010 11:50:05 +0000 (12:50 +0100)
commit3fe693b4d6c3e912688c1996a977cd4d56ed7334
tree437a409a93ebe11f5d9d64ade4960b7faad20a67
parent078272e1152649f7b4d298a937b785f99fd717c2
[BUG] http chunking: don't report a parsing error on connection errors

When haproxy parses chunk-encoded data that are scheduled to be sent, it is
possible that the other end is closed (mainly due to a client abort returning
as an error). The message state thus changes to HTTP_MSG_ERROR and the error
is reported as a chunk parsing error ("PD--") while it is not. Detect this
case before setting the flags and set the appropriate flag in this case.
src/proto_http.c