Hello All, I'm currently using speedy_cgi as a persistent perl process and wanted to test if fcgi would be an option for me.
I've installed and configured mod_fcgid with apache2 on linux and tested the base functions and the fcgi interface successfully. Then I read the article in http://cgi-app.org/index.cgi?FastChttp://cgi-app.org/index.cgi?FastCGIGI And managed to run my cgiapp with this method. As the method implies a new instance of my cgiapp is created for every request. With speedy_cgi I used to only create a cgiapp instance once and reuse it on request. I consider my cgiapp to be a big one and it would benefit a lot from being instantiated once and the instance reused often. So I did the following additions/modifications to the example mentioned in the article: use CGI::Fast; my $app = MyCGIApplication->new(); while (my $q = CGI::Fast->new()){ $app->query($q); $app->run(); } This basicly worked but as soon as multiple requests to the script are initiated or request answers exceed some magic size the clients get incomplete answers ie. the page code stops unexpected somewhere between head and end. So my questions are: What is wrong with my modifications? Do I have to flush some buffers in order to ensure complete delivery to the client? Are there any other possibilities to achieve a persisten reference to my cgiapp that does not get initializied at every request? (besides mod_perl or speedy_cgi). Any help would be great. Best regards... -- Mit freundlichen Grüßen Dietrich Streifert -- Visionet GmbH Firmensitz: Am Weichselgarten 7, 91058 Erlangen Registergericht: Handelsregister Fürth, HRB 6573 Geschäftsführer: Stefan Lindner ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################