]> git.ipfire.org Git - thirdparty/squid.git/commit - src/FwdState.h
Partial bug #2964 fix: Avoid stuck ICAP REQMOD transactions when HTTP fails.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 12 Sep 2010 00:05:59 +0000 (18:05 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 12 Sep 2010 00:05:59 +0000 (18:05 -0600)
commit9d2760b657d39f709765ade58b7a7fc65fa31d58
tree252612261d53dbc7bd62e062eca4d8d4ea493cc2
parentabe286b83515881f964aff82503cd983a421ba72
Partial bug #2964 fix: Avoid stuck ICAP REQMOD transactions when HTTP fails.

Added doneWithRetries() and used it to inform the request body sender that
there will be no more body consumers. This allows the sender (e.g., an ICAP
REQMOD transaction) to quit instead of waiting for body buffer space forever.

Moved !self check into checkRetry() because we need to call doneWithRetries()
even if self is nil. The move should not affect the old code.

Based on lp 3p1-rock branch, r9610.
src/forward.cc
src/forward.h