Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
laziness, impatience, and hubris
 
PerlMonks  

Dancer Session timeout

by Boldra (Deacon)
on Apr 12, 2012 at 13:47 UTC ( #964759=perlquestion: print w/ replies, xml ) Need Help??
Boldra has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing my first Dancer app (not impressed so far, it's opaque to profilers), and I've just discovered that my Dancer::Session::Storable sessions are blocking. There's no warnings, but some session reads are taking 30 seconds, slowing down the whole application.

I've tried a couple of other session plugins, but they had other problems (YAML sessions would occasionally vanish, PSGI sessions don't seem to save anything). Storable seemed to be the most stable, but maybe there is something general going on? I'm only having this problem in my production environment, not in development.

Grateful for any ideas.


- Boldra

Comment on Dancer Session timeout
Re: Dancer Session timeout
by Anonymous Monk on Apr 12, 2012 at 15:52 UTC
    post code

      Thanks for your ideas, but I think that a problem which I can't reliably reproduce when running the entire app in development isn't going to lend itself to a code snippet demonstrating the problem.

      It's an intermittant problem. If I had a technique to narrow it down to a code snippet, it would no longer be a problem.

Re: Dancer Session timeout
by Anonymous Monk on Apr 13, 2012 at 01:12 UTC
    Check the difference between your development.yml and production.yml files.
Re: Dancer Session timeout
by chromatic (Archbishop) on Apr 13, 2012 at 05:56 UTC
      I hadn't seen that - thanks - it's convenient, fast and pretty.

      I added a sleep to Dancer::_session(), but NYTProf still isn't showing any of them, so the opacity remains.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://964759]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-04-19 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls