Browse Source

Explicitly check for HUP in proxy_recv, avoiding an attempt at reading a line

master
ckolivas 10 years ago
parent
commit
93a1414e29
  1. 5
      src/generator.c

5
src/generator.c

@ -1978,7 +1978,10 @@ static void *proxy_recv(void *arg)
if (likely(ret > 0)) {
subproxy = event.data.ptr;
cs = subproxy->cs;
ret = read_socket_line(cs, 5);
if (event.events & EPOLLHUP)
ret = -1;
else
ret = read_socket_line(cs, 5);
}
if (ret < 1) {
LOGNOTICE("Proxy %ld:%d %s failed to epoll/read_socket_line in proxy_recv",

Loading…
Cancel
Save