David Steinbrunner wrote:
> Hello all,
>
> Has any one before me Mixed Dispatch and FastCGI?
I haven't, but I do it with mod_perl a lot.
> It seems that the query object is getting cached. To elaborate, I can start
> up the web server, submit a form and it works but using that same form any
> number of times after that ends up using the values from the first submit.
> If I use Data::Dumper to check the query object before it is passed into
> Dispatch, it shows fresh data but when I dump $self from within a runmode
> the __QUERY_OBJ values are stale.
If you want some debugging to see exactly what dispatch is doing, you can try
turning on debugging:
$CGI::Application::Dispatch::DEBUG = 1;
> I'm unsure if I'm just not doing something right or if I have run into a
> bug. I'm also ruining this under lighttpd if it might matter.
If you can reduce it to the shortest amount of code possible that can replicate
the problem it might make it easier for other FCGI/lighttpd folks to help out.
> Here is what my the main bit of my handler looks like:
>
> #####################
> #!/usr/bin/perl
>
> use strict;
>
> use lib "/usr/local/www/lib";
>
> use CGI::Fast qw(:standard);
> use Dispatch;
>
> while ( my $q = new CGI::Fast ) {
> eval {
> Dispatch->dispatch(
>
> args_to_new => { QUERY => $q },
> default => 'Register',
>
> #debug => 1,
> );
> };
> if ($@) {
> &errorHandler($@);
> }
> }
That looks ok to me, but I'm not a FCGI expert.
> I am sub classing CGI::Application::Dispatch so that I can get custom error
> handling behavior. I don't think it has any thing to do with the issue but
> here it is regardless:
I don't think it's the cause either, but you might want to drop the custom
dispatch class and see if you can replicate it with C::A::Dispatch itself. If
you can, then you know for sure it's not your subclass.
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.