I've been running mason under fastcgi for about six months now since we moved to lighttpd from apache. Currently it is run by lighttpd, using bin-path. The script uses CGI::Fast with a while ($cgi = new CGI::Fast) loop. If I run this manually, even setting $ENV{FCGI_SOCKET_PATH} to be the path to a socket (which does not get created), I get the main loop run prematurely (or what I believe to be prematurely). The same script runs fine in binpath mode. It uses handle_cgi_object($cgi).
I wanted to stabalise the processes and run it under monit. I soon gave up on CGI::Fast, as I was unable to get it to create the socket and listen to it. I moved to FCGI directly, looping around while $request->Accept >= 0. $request was created with the socket name passed as $_[4]. When I did this I found I got a working handler - YAY. I daemonised it, and used FCGI::ProcManager, and everything was still good. I used handle_request from CGIHandler and I then found in testing that the parameters were being cached, everything after the first request used the parameters from the first request. I checked %ENV inside the loop, and found it to be fine. I checked inside handle_cgi_object/_handler and the request_args, calling $r->params, gets the wrong thing. So I've now failed with both approaches: CGI::Fast and FCGI directly. In one case I can't get the module to do what i want, probably through a mistake on my part, and in the other case mason seems to cache the first request and use it's arguments for all future requests. Can someone help me with this, please? I've attached both the new attempts, and the one that works with the bin-path. Thanks Gareth
mason-handler-old.fcgi
Description: Binary data
mason-handler-cgifast.fcgi
Description: Binary data
mason-handler-fcgi.fcgi
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users