Project

General

Profile

Bug #2796 » patch-v2.patch

horgh, 2017-03-12 01:55

View differences:

src/mod_fastcgi.c
2966 2966
		if (chunkqueue_length(con->write_queue) > 65536 - 4096) {
2967 2967
			fdevent_event_clr(srv->ev, &(hctx->fde_ndx), hctx->fd, FDEVENT_IN);
2968 2968
		} else if (!(fdevent_event_get_interest(srv->ev, hctx->fd) & FDEVENT_IN)) {
2969
			/* optimistic read from backend, which might re-enable FDEVENT_IN */
2970
			handler_t rc = fcgi_recv_response(srv, hctx); /*(might invalidate hctx)*/
2971
			if (rc != HANDLER_GO_ON) return rc;           /*(unless HANDLER_GO_ON)*/
2969
			fdevent_event_add(srv->ev, &(hctx->fde_ndx), hctx->fd, FDEVENT_IN);
2972 2970
		}
2973 2971
	}
2974 2972

  
(2-2/2)