--------------------- PatchSet 6017 Date: 2003/11/06 07:31:51 Author: dwsquid Branch: icap-2_5 Tag: (none) Log: when reading from ICAP server, also handle the "connection closed" case where read() returns 0. Members: src/icap_respmod.c:1.1.2.15->1.1.2.16 Index: squid/src/icap_respmod.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap_respmod.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_respmod.c 6 Nov 2003 06:41:12 -0000 1.1.2.15 +++ squid/src/icap_respmod.c 6 Nov 2003 07:31:51 -0000 1.1.2.16 @@ -1,5 +1,5 @@ /* - * $Id: icap_respmod.c,v 1.1.2.15 2003/11/06 06:41:12 dwsquid Exp $ + * $Id: icap_respmod.c,v 1.1.2.16 2003/11/06 07:31:51 dwsquid Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -711,7 +711,7 @@ debug(81, 9) ("{%s}\n", icap->chunk_buf.buf); } } - if (len < 0) { + if (len <= 0) { debug(81, 2) ("icapReadReply: FD %d: read failure: %s.\n", fd, xstrerror()); if (ignoreErrno(errno)) {