Browse Source

Don't hang up immediately on epollhup if we still have epollin events

master
Con Kolivas 8 years ago
parent
commit
a8688aece3
  1. 3
      src/generator.c

3
src/generator.c

@ -2181,7 +2181,8 @@ static void *userproxy_recv(void *arg)
if (unlikely(!proxy->authorised)) if (unlikely(!proxy->authorised))
continue; continue;
if (event.events & (EPOLLHUP | EPOLLERR | EPOLLRDHUP)) { if ((event.events & (EPOLLHUP | EPOLLERR | EPOLLRDHUP)) &&
!(event.events & EPOLLIN)) {
LOGNOTICE("Proxy %d:%d %s hung up in epoll_wait", proxy->id, LOGNOTICE("Proxy %d:%d %s hung up in epoll_wait", proxy->id,
proxy->subid, proxy->url); proxy->subid, proxy->url);
disable_subproxy(gdata, proxy->parent, proxy); disable_subproxy(gdata, proxy->parent, proxy);

Loading…
Cancel
Save