--------------------- PatchSet 5898 Date: 2003/08/21 23:14:08 Author: dwsquid Branch: icap-2_5 Tag: (none) Log: passing 'no_addr' to comm_open() causes commBind() to fail in commResetFD(). Use the "outgoing" TCP address instead. If this is a bad idea, then we probably have to modify commResetFD() so it doesn't call commBind() for no_addr. Members: src/icap.c:1.1.16.13->1.1.16.14 Index: squid/src/icap.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/icap.c,v retrieving revision 1.1.16.13 retrieving revision 1.1.16.14 diff -u -r1.1.16.13 -r1.1.16.14 --- squid/src/icap.c 21 Aug 2003 23:11:37 -0000 1.1.16.13 +++ squid/src/icap.c 21 Aug 2003 23:14:08 -0000 1.1.16.14 @@ -1,5 +1,5 @@ /* - * $Id: icap.c,v 1.1.16.13 2003/08/21 23:11:37 dwsquid Exp $ + * $Id: icap.c,v 1.1.16.14 2003/08/21 23:14:08 dwsquid Exp $ * * DEBUG: section 81 Internet Content Adaptation Protocol (ICAP) Client * AUTHOR: Geetha Manjunath, Hewlett Packard Company @@ -1075,7 +1075,10 @@ /* fd = comm_open(SOCK_STREAM, 0, icap_server_addr, 0, */ if (!Config.icapcfg.onoff) return 0; - fd = comm_open(SOCK_STREAM, 0, no_addr, 0, COMM_NONBLOCKING, note); + debug(81, 5) ("startICAP, local address %s\n", + inet_ntoa(getOutgoingAddr(NULL))); + fd = comm_open(SOCK_STREAM, 0, getOutgoingAddr(NULL), 0, + COMM_NONBLOCKING, note); if (fd < 0) return NULL;