squid-1700

Version:

2.6.Sq

Bug link:

http://bugs.squid-cache.org/show_bug.cgi?id=1700

Symptom (Failure):

Squid failed to disconnect from WCCP cisco server.

How it is diagnosed:

We did not reproduce the failure, but only analyzed the discussion threads and source analysis.

Root Cause:

System call “connect” failed! Printed a log message. Developers diagnosed the failure directly from the log message!

void wccp2ConnectionOpen(void) {

if (connect(theWccp2Connection, (struct sockaddr *) &router, router_len))

                fatal("Unable to disconnect WCCP out socket");

}

Is there any log message?:

Yes.

Can Errlog anticipate the error?

Yes. System call ‘connect’ returned error, and it is checked and handled by squid.