Sunday, July 15, 2007

use rude::cgi in fastCGI

rude::cgi was designed for CGI. when I put it in use for my fastCGI program, I make it a patch.
1) rude::cgi use singleton pattern , which doesn't work under fastCGI, because fcgi need to create new instance each time to parse new request. So I modify rude's constructor and destructor, make it destroy the instance after use.
2)fastCGI replace the stdio.h, and most of its functions. so where rude::cgi uses stdio.h, put #include before #include . that will work.

I am enjoying fast speed of fastcgi, while easy programming with rude::cgi.


ps:I have tried to use qDecoder, also patch a similar modification, but it doesn't work for fcgi (giving a signal 11, SIGSEG ). but it works under cgi mode. I have no idea.

2 comments:

Fernando said...

I try this post but i not have sucecessful, please send-me more datails

Anonymous said...

orierpall
[url=http://healthplusrx.com/worms]worms[/url]
ErarAbrarycle