--------------------- PatchSet 6539 Date: 2005/03/24 18:03:55 Author: chtsanti Branch: icap-2_5 Tag: (none) Log: If the squid did not have all the http headers readed with one read from icap server then died on an assertion. Now schedules a read to get more data from icap server. Members: src/icap_respmod.c:1.1.2.49->1.1.2.50 Index: squid/src/icap_respmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_respmod.c,v retrieving revision 1.1.2.49 retrieving revision 1.1.2.50 diff -u -r1.1.2.49 -r1.1.2.50 --- squid/src/icap_respmod.c 20 Mar 2005 18:11:48 -0000 1.1.2.49 +++ squid/src/icap_respmod.c 24 Mar 2005 18:03:55 -0000 1.1.2.50 @@ -1,6 +1,6 @@ /* - * $Id: icap_respmod.c,v 1.1.2.49 2005/03/20 18:11:48 chtsanti Exp $ + * $Id: icap_respmod.c,v 1.1.2.50 2005/03/24 18:03:55 chtsanti Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -923,7 +923,8 @@ * the partial reply buffered in 'chunk_buf' and wait * for more. */ - assert(icapHttpReplyHdrState(icap) == 0); + debug(81,3)("We don't have full Http headers.Schedule a new read\n"); + commSetSelect(icap->icap_fd, COMM_SELECT_READ, icapReadReply, icap, 0); } } icap->http_header_bytes_read_so_far = so_far;