I am still on Dancer 1.1805. I have a weird problem. For some reason, my application seems to be running twice for every request. I put a few debug messages, and you can see below what is happening. Here is the skeleton of my app, with line numbers. 1> get '/foo/:bar' => sub { 1> debug 'in foo with param = ' . params->{offset}; 1> qux( params->{bar}, 'foo' ); 1> }; 26> get '/*?' => sub { 27> my ($p) = splat; 28> $p = 'lat' unless $p; 29> debug 'in bar with param = ' . $p; 30> qux( params->{bar}, 'bar' ); 31> }; 293> sub qux { 294> my ($from) = @_; 295> debug "in qux with param = " . $from; 296> } Here is the debug log. Each time I refresh the browser, I get two hit #1 and two hit #5. What is going on? [68325] debug @0.000540> [hit #1] in bar with param = lat in ../dance.pm l. 29 [68325] debug @0.040846> [hit #1] in qux with param = bar in ../dance.pm l. 295 [68325] debug @0.000396> [hit #5] in bar with param = lat in ../dance.pm l. 29 [68325] debug @0.000868> [hit #5] in qux with param = bar in ../dance.pm l. 295 [68328] debug @0.000409> [hit #1] in bar with param = lat in ../dance.pm l. 29 [68328] debug @0.001359> [hit #1] in qux with param = bar in ../dance.pm l. 295 [68328] debug @0.000396> [hit #5] in bar with param = lat in ../dance.pm l. 29 [68328] debug @0.000864> [hit #5] in qux with param = bar in ../dance.pm l. 295 -- Puneet Kishor
On Wed, Aug 25, 2010 at 2:04 AM, P Kishor <punk.kish@gmail.com> wrote:
I am still on Dancer 1.1805. I have a weird problem. For some reason, my application seems to be running twice for every request. I put a few debug messages, and you can see below what is happening. Here is the skeleton of my app, with line numbers.
hm weird. Are you running the standalone server ? or plack and how ? (fcgi, cgi, mod_perl, ...) do you mind to test with the last dancer (1.809) ?
On Wed, Aug 25, 2010 at 1:47 AM, franck <franck@lumberjaph.net> wrote:
On Wed, Aug 25, 2010 at 2:04 AM, P Kishor <punk.kish@gmail.com> wrote:
I am still on Dancer 1.1805. I have a weird problem. For some reason, my application seems to be running twice for every request. I put a few debug messages, and you can see below what is happening. Here is the skeleton of my app, with line numbers.
hm weird. Are you running the standalone server ? or plack and how ? (fcgi, cgi, mod_perl, ...) do you mind to test with the last dancer (1.809) ?
gak! there is already a 1.809?! Actually, I upgraded yesterday to 1.808 (with a bit of heartburn in the process). So, I am running 1.1808 with Apache2, mod_perl and Plack::Handler::Apache2. -- Puneet Kishor
participants (2)
-
franck -
P Kishor