Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Race condition in Dancer

by Anonymous Monk
on Nov 08, 2012 at 10:06 UTC ( #1002861=note: print w/ replies, xml ) Need Help??


in reply to Race condition in Dancer

Ah, classic rookie mistakes :) smell so good :)

Here is a tip , development.yml contains

# auto_reload is a development and experimental feature # you should enable it by yourself if you want it # Module::Refresh is needed # # Be aware it's unstable and may cause a memory leak. # DO NOT EVER USE THIS FEATURE IN PRODUCTION # OR TINY KITTENS SHALL DIE WITH LOTS OF SUFFERING

If you saw that and said to yourself : I know how to fix it, I'll use Shotgun!

Don't! At least on win32 mingw perl v5.14.1, it works nicely to eat all memory :)

OTOH auto_reload: 1 does require manual restart after 3-6 edits , irritating :)


Comment on Re: Race condition in Dancer
Download Code
Replies are listed 'Best First'.
Re^2: Race condition in Dancer
by choroba (Canon) on Nov 08, 2012 at 15:15 UTC
    classic rookie mistakes
    Is it a rookie mistake to believe the modules installed from CPAN? Or is the author of Dancer::Session::YAML a rookie?
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      I have wondered the same thing myself.

      In a prior life when I was developing life/safety embedded systems in C there were several very attractive 3rd party C Libraries that would have saved a lot of time and effort. However, I could not justify the risk of using these packages. Yes, the C compiler also came from an outside vendor, but at least it was from a large company with deep pockets in case the lawyers ever got involved.

      Maybe the CPAN modules you(all) use aren't life/safety related, but CEOs these days can be held criminally liable for failures in information systems(hacking/idenity theft/etc) and most can't evaluate their risk. At least a large user base should shake out problems quicker.

      What say you?

      James

      Is it a rookie mistake to believe the modules installed from CPAN? Or is the author of Dancer::Session::YAML a rookie?

      IIRC every tutorial on locking/open I've seen warns you about clobbering your files, and before you obtain a lock -- the idiom is open without clobber, obtain lock, trunc/seek/write as needed, close

Re^2: Race condition in Dancer
by Anonymous Monk on Nov 08, 2012 at 10:08 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-30 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls