]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] session: simplify buffer error handling
authorWilly Tarreau <w@1wt.eu>
Sun, 21 Jun 2009 20:43:05 +0000 (22:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Jun 2009 21:40:24 +0000 (23:40 +0200)
commit3deb3d04183ca98e66d4fd488ffc608885e21f10
tree5b4071f5aa328e160fb30d8cebd28a81f045885f
parentb67a9b8ca885dec7afffdf59b36af6b68e83727b
[MAJOR] session: simplify buffer error handling

Buffer errors (timeouts and I/O errors) were handled at two places,
just after the analysers and after again.

Now that the timeout detection has moved, it has become easier to
handle those errors.

This has also made it possible for the request and response analysers
to be processed together as a down-up event, and all the up-down I/O
updates to be processed afterwards, which is exactly what we're looking
for. Interestingly this has reduced the number of iterations of
(stream_int, req_resp) from (5,6,5) to (5,5,4).

Several tests have been run without any issue found.
src/session.c