From 482dcd0160aacfc7b25ad3fbf6963a1cb90680e1 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 17 Jul 2010 19:34:59 +1200 Subject: [PATCH] Some polish on debug output --- src/comm/ConnOpener.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.47.3