diff --git a/event.c b/event.c index 4a6d3c09..e5543f1f 100644 --- a/event.c +++ b/event.c @@ -421,7 +421,8 @@ int event_queue_interesting_fd(void *events, int id) { int event_queue_interesting_fd_has_error(void *events, int id) { struct kevent *ev = (struct kevent *) events; - if ( ( (ev[id].flags == EV_ERROR) || (ev[id].flags == EV_EOF) || (ev[id].flags == (EV_EOF|EV_ERROR))) ) { + // DO NOT CHECK FOR EOF !!! + if ( ev[id].flags & EV_ERROR ) { return 1; } return 0; diff --git a/plugins/http/http.c b/plugins/http/http.c index 95e2d419..8ba34220 100644 --- a/plugins/http/http.c +++ b/plugins/http/http.c @@ -912,7 +912,6 @@ void http_loop(int id) { // body from client else if (interesting_fd == uhttp_session->fd) { - //uwsgi_log("receiving body...\n"); len = recv(uhttp_session->fd, bbuf, UMAX16, 0); #ifdef UWSGI_EVENT_USE_PORT event_queue_add_fd_read(uhttp_queue, uhttp_session->fd);