]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: make safer use of the DONT_READ and AUTO_CLOSE flags
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2010 23:20:41 +0000 (00:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2010 23:20:41 +0000 (00:20 +0100)
commit90deb18916c7dc14aacc0fd4f68fe9636158f3af
treeece5b3187439af641ea08a2a925a0644e1f583e0
parent576507f4c5e46f377cfe22156e9d3bafdcd4c9f4
[MEDIUM] http: make safer use of the DONT_READ and AUTO_CLOSE flags

Several HTTP analysers used to set those flags to values that
were useful but without considering the possibility that they
were not called again to clean what they did. First, replace
direct flag manipulation with more explicit macros. Second,
enforce a rule stating that any buffer which changes one of
these flags from the default must restore it after completion,
so that other analysers see correct flags.

With both this fix and the previous one about analyser bits,
we should not see any more stuck sessions.
include/proto/buffers.h
src/proto_http.c
src/session.c