From: Henrik Nordstrom Date: Fri, 14 May 2010 04:13:30 +0000 (+0200) Subject: Clean up use of commResetFD when socket incompatible with requested address X-Git-Tag: SQUID_3_1_4~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77f14f379386bb040cfc22179e64adb8ef093b3d;p=thirdparty%2Fsquid.git Clean up use of commResetFD when socket incompatible with requested address This patch backs out part of the patch for Bug #2222 and replaces it by crudely cycling over the available addresses, trying to skip over addresses not compatible with the current socket. This solves issues seen when using tproxy or tcp_outgoing_address and DNS of the requested host returns AAAA records in addition to A records. This change is interim, waiting for the larger connection setup overhaul, but seems to do the trick for now. One effect of this change is that there will be no fallback to the other IP generation if the socket is configured to a specific outgoing address. Priory the code threw away the outgoing address and tried again when encountering an incompatibility. --- 77f14f379386bb040cfc22179e64adb8ef093b3d