is invalid in some way. Squid should now handle 404 Not Found and other
"invalid" ICAP OPTIONS responses by marking the ICAP service down.
OPTIONS error setting needs more work, but reporting the last error should
work for now.
Thanks to Christos Tsantilas for reporting and investigating this bug.
if (theOptions == NULL)
return;
+ if (!theOptions->valid()) {
+ debugs(93,1, "WARNING: Squid got an invalid ICAP OPTIONS response " <<
+ "from service " << uri << "; error: " << theOptions->error);
+ return;
+ }
+
/*
* Issue a warning if the ICAP server returned methods in the
* options response that don't match the method from squid.conf.