280ab91b6a9339a2fdcbcddd79da61c436ca0d27 galt Wed Aug 24 15:26:44 2011 -0700 adding a little more helpful info about the hostName to the error message diff --git src/lib/net.c src/lib/net.c index 2134cea..eb92062 100644 --- src/lib/net.c +++ src/lib/net.c @@ -108,31 +108,31 @@ warn("Error in getsockopt() %d - %s", errno, strerror(errno)); close(sd); return -1; } // Check the value returned... if (valOpt) { warn("Error in TCP non-blocking connect() %d - %s", valOpt, strerror(valOpt)); close(sd); return -1; } break; } else { - warn("TCP non-blocking connect() timed-out in select() after %ld milliseconds - Cancelling!", msTimeout); + warn("TCP non-blocking connect() to %s timed-out in select() after %ld milliseconds - Cancelling!", hostName, msTimeout); close(sd); return -1; } } } else { warn("TCP non-blocking connect() error %d - %s", errno, strerror(errno)); close(sd); return -1; } } // Set to blocking mode again if ((fcntlFlags = fcntl(sd, F_GETFL, NULL)) < 0)