Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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
Replies are listed 'Best First'.
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.

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 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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-10-09 20:55 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (251 votes), past polls