--------------------- PatchSet 7156 Date: 2005/11/02 18:21:26 Author: chtsanti Branch: icap-2_5 Tag: (none) Log: If the service was unreachable and the next options request to the icap service was successfull the service was not marked as reachable again Members: src/icap_opt.c:1.1.2.15->1.1.2.16 Index: squid/src/icap_opt.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_opt.c,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -u -r1.1.2.15 -r1.1.2.16 --- squid/src/icap_opt.c 26 Sep 2005 17:26:24 -0000 1.1.2.15 +++ squid/src/icap_opt.c 2 Nov 2005 18:21:26 -0000 1.1.2.16 @@ -1,6 +1,6 @@ /* - * $Id: icap_opt.c,v 1.1.2.15 2005/09/26 17:26:24 dwsquid Exp $ + * $Id: icap_opt.c,v 1.1.2.16 2005/11/02 18:21:26 chtsanti Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client OPTIONS * AUTHOR: Ralf Horstmann @@ -297,6 +297,9 @@ debug(81, 3) ("icapOptReadReply: OPTIONS request not successful. scheduling again in %d seconds\n", Config.icapcfg.check_interval); s->unreachable = 1; } + else + s->unreachable = 0; + if (s->options_ttl <= 0) s->options_ttl = Config.icapcfg.check_interval; eventAdd("icapOptStart", icapOptStart, s, s->options_ttl, 1);