]> git.ipfire.org Git - thirdparty/squid.git/commit - src/adaptation/icap/Xaction.h
Ignore comm_write notifications if the newly added
authorrousskov <>
Wed, 20 Jun 2007 03:08:33 +0000 (03:08 +0000)
committerrousskov <>
Wed, 20 Jun 2007 03:08:33 +0000 (03:08 +0000)
commitcfc684056b06a337844889663f0d0fadc1af9c33
treefa47d905fb5b1c930453246e71af45260f3b2ff1
parentec1245f85f02c3b03e203dedf98de1833c7fe9f8
Ignore comm_write notifications if the newly added
ICAPXaction::ignoreLastWrite member is set. This allows kids to more safely
work around comm inability to cancel a pending write request.

When connect() times out, throw an exception instead of calling mustStop()
because we can bypass the former and not the latter. We cannot bypass mustStop
because the code may use it for legitimate stopping conditions. Eventually,
we may want to have two kinds of exceptions: bypassable and fatal.

Support icap_connect_timeout and icap_io_timeout squid.conf options.

Count I/O timeout as a service failure. This helps suspend broken services
faster and avoid HTTP processing delays when the service is optional.

Eventually, we will probably count all (or most) exceptions as service
failures.

Removed ICAPXaction members that were copied to AsyncJob some time ago.

Polished debugging.

Merged from the squid3-icap branch.
src/ICAP/ICAPXaction.cc
src/ICAP/ICAPXaction.h