]> git.ipfire.org Git - thirdparty/squid.git/commit - src/adaptation/icap/ModXact.cc
Bug 2034 fix, v4: Separate handling of virgin server responses and ICAP-adapted
authorrousskov <>
Fri, 10 Aug 2007 05:30:52 +0000 (05:30 +0000)
committerrousskov <>
Fri, 10 Aug 2007 05:30:52 +0000 (05:30 +0000)
commit585ab2609de3efdd62a974afed5d4067f58db6ab
tree53ec82987048f00382864a9c358b5ad1aa63d244
parent76dc4ca319e41e2a39e612bd792a925fbbe4abf9
Bug 2034 fix, v4: Separate handling of virgin server responses and ICAP-adapted
responses. Both can be active at the same time. Only one can become final and
get into the store entry.

Also, do not abort ICAP transactions when the virgin response ends prematurely.
Keep going because the ICAP initiator may still want to know the ICAP reaction
to the now-truncated virgin message.

This version passes a few basic tests, but may need more work and does need
polishing. For example, the common code should be factored out from
ICAPModXact::noteBodyProductionEnded and ICAPModXact::noteBodyProducerAborted.
src/ICAP/ICAPModXact.cc
src/Server.cc
src/Server.h
src/ftp.cc
src/http.cc
src/http.h