]> git.ipfire.org Git - thirdparty/squid.git/commit
Fixed propagation of eCAP transaction meta-information to core Squid
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 11 Mar 2011 22:22:13 +0000 (15:22 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 11 Mar 2011 22:22:13 +0000 (15:22 -0700)
commitaaf0559d4323bd1b990dfa7b589c9fac549fda29
tree6e85ddc326e7f1bad837ff6aca73b46beb234a86
parent97b7018628ab351d4e50b78ba69f2650cc4e252e
Fixed propagation of eCAP transaction meta-information to core Squid
by synchronizing the history of the virgin and eCAP-adapted/cloned request.

If the request history is created after the request got cloned, the cloned
request will have no history unless we explicitly import the newly created
history. Hopefully, it is not possible for the cloned request to get its own,
diverging history before the import (we check and throw if that happens).

This is one more example why a MasterTransaction class (with history) needs
to be extracted and separated from the HttpRequest class.
src/HttpRequest.cc
src/HttpRequest.h
src/adaptation/Iterator.cc
src/adaptation/ecap/XactionRep.cc
src/adaptation/ecap/XactionRep.h