src/cgi.cpp
/**
 * A thread function that handles fcgi request
 */
A thread function that handles fcgi request
A thread function that handles fcgi request
void fcgiThread(int fd) {
	FCGX_Init();
	FCGX_Request request;
	FCGX_InitRequest(&request, fd, 0);
	while (FCGX_Accept_r(&request) == 0) {
		fcgi_streambuf streambuf_in(request.in);
		fcgi_streambuf streambuf_out(request.out);
		fcgi_streambuf streambuf_err(request.err);
		HTTPService::run(&streambuf_in, &streambuf_out, &streambuf_err, request);
	}
}
void fcgiThread ( int fd ) { FCGX_Init ( ) ; FCGX_Request request ; FCGX_InitRequest ( & request , fd , 0 ) ; while ( FCGX_Accept_r ( & request ) == 0 ) { fcgi_streambuf streambuf_in ( request . in ) ; fcgi_streambuf streambuf_out ( request . out ) ; fcgi_streambuf streambuf_err ( request . err ) ; HTTPService :: run ( & streambuf_in , & streambuf_out , & streambuf_err , request ) ; } }
A thread function that handles fcgi request
A thread function that handles fcgi request