Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Dancer Session timeout

by Boldra (Deacon)
on Apr 12, 2012 at 13:47 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found