From: Amos Jeffries Date: Sat, 17 Jul 2010 07:34:59 +0000 (+1200) Subject: Some polish on debug output X-Git-Tag: take08~55^2~124^2~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=482dcd0160aacfc7b25ad3fbf6963a1cb90680e1;p=thirdparty%2Fsquid.git Some polish on debug output --- diff --git a/src/comm/ConnOpener.cc b/src/comm/ConnOpener.cc index 56babe393f..67cae661e4 100644 --- a/src/comm/ConnOpener.cc +++ b/src/comm/ConnOpener.cc @@ -1,3 +1,7 @@ +/* + * DEBUG: section 05 Socket Connection Opener + */ + #include "config.h" #include "comm/ConnOpener.h" #include "comm/Connection.h" @@ -114,6 +118,8 @@ ConnOpener::callCallback(comm_err_t status, int xerrno) void ConnOpener::start() { + Must(solo != NULL); + /* handle connecting to one single path */ if (solo->fd < 0) { #if USE_IPV6 @@ -137,7 +143,7 @@ ConnOpener::start() if (calls.timeout == NULL) { typedef CommCbMemFunT Dialer; - calls.timeout = asyncCall(5, 4, "ConnOpener::connect Timeout", + calls.timeout = asyncCall(5, 4, "ConnOpener::timeout", Dialer(this, &ConnOpener::timeout)); } debugs(5, 3, HERE << "FD " << solo->fd << " timeout " << connect_timeout);