|
|
@ -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); |
|
|
|