307 |
307 |
308 int cgi_stdout_readevent(EventHandler *ev, Event *event) { |
308 int cgi_stdout_readevent(EventHandler *ev, Event *event) { |
309 CGIHandler *handler = event->cookie; |
309 CGIHandler *handler = event->cookie; |
310 |
310 |
311 if(handler->debug_finished) { |
311 if(handler->debug_finished) { |
312 log_ereport(LOG_DEBUG, "cgi-send: req: %p debug_finished: 1 cgi_stdout_readevent events: %d", handler->parser.rq, handler->events); |
312 log_ereport(LOG_DEBUG, "cgi-send: req: %p debug_finished: 1 cgi_stdout_readevent events: %d", handler->parser->rq, handler->events); |
313 } |
313 } |
314 |
314 |
315 event->finish = cgi_event_finish; |
315 event->finish = cgi_event_finish; |
316 handler->writeev->finish = NULL; |
316 handler->writeev->finish = NULL; |
317 CgiIOResult ret = cgi_read_output(handler, ev); |
317 CgiIOResult ret = cgi_read_output(handler, ev); |