]> git.ipfire.org Git - thirdparty/squid.git/commit
Polished HttpStateData::persistentConnStatus() code. No functionality changes.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 3 Dec 2010 22:56:17 +0000 (15:56 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 3 Dec 2010 22:56:17 +0000 (15:56 -0700)
commiteedbb18737582235f10f6caea91249e5ebdb601e
tree143520c38cad429dfa6600bc4a8e103bf65a5d2e
parent0210ab2339d7bf3857c8120e14cd66e68a82a073
Polished HttpStateData::persistentConnStatus() code. No functionality changes.

Do not check for flags.headers_parsed. The removed check was:
 - misplaced: connection-related conditions such as eof must be checked first;
 - wasteful: we never call persistentConnStatus() unless we parsed headers.

Moreover, calling persistentConnStatus() before we parse headers would trigger
and assertion because the method uses virginReply() which does not exist until
the headers are parsed.
src/http.cc