Browse Source

Add information about whether the attempt to reopen a socket was successful or not

master
Con Kolivas 9 years ago
parent
commit
61b25e4ac4
  1. 5
      src/ckpool.c

5
src/ckpool.c

@ -839,10 +839,11 @@ out_empty:
out: out:
if (cs->fd < 0) { if (cs->fd < 0) {
/* Attempt to reopen a socket that has been closed due to a /* 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. */ * read/write to it. */
LOGWARNING("Attempting to reopen socket to %s:%s", cs->url, cs->port);
cs->fd = connect_socket(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); free(http_req);
dealloc(cs->buf); dealloc(cs->buf);

Loading…
Cancel
Save