Browse Source

Always disable subproxies on failure to send message

master
Con Kolivas 10 years ago
parent
commit
b4bf867269
  1. 4
      src/generator.c

4
src/generator.c

@ -1476,10 +1476,12 @@ static void *proxy_send(void *arg)
free(jobid);
json_decref(msg->json_msg);
free(msg);
if (!ret && subproxy && cs->fd > 0) {
if (!ret && subproxy) {
if (cs->fd > 0) {
LOGWARNING("Proxy %d:%s failed to send msg in proxy_send, dropping to reconnect",
proxy->id, proxy->si->url);
Close(cs->fd);
}
if (!parent_proxy(subproxy) && !subproxy->disabled)
disable_subproxy(gdata, proxy, subproxy);
}

Loading…
Cancel
Save