Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-02-26 02:12 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (316 votes). Check out past polls.