From 61b25e4ac4e6e47231265a36396170730e1138be Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 15 Dec 2015 09:13:17 +1100 Subject: [PATCH] Add information about whether the attempt to reopen a socket was successful or not --- src/ckpool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ckpool.c b/src/ckpool.c index 6f4a71fd..3a09a4f7 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -839,10 +839,11 @@ out_empty: out: if (cs->fd < 0) { /* Attempt to reopen a socket that has been closed due to a - * failed requet or if the socket was closed while trying to + * failed request or if the socket was closed while trying to * read/write to it. */ - LOGWARNING("Attempting to reopen socket to %s:%s", cs->url, cs->port); cs->fd = connect_socket(cs->url, cs->port); + LOGWARNING("Attempt to reopen socket to %s:%s %ssuccessful", + cs->url, cs->port, cs->fd > 0 ? "" : "un"); } free(http_req); dealloc(cs->buf);