[dancer-users] random web page breakages

Russell Jenkins russell.jenkins at strategicdata.com.au
Tue Apr 28 01:04:38 BST 2015


On 27/04/2015 3:39 am, Nikos Vaggalis wrote:
> Is that indicating a global DBI handle that is reused and cleaned up 
> at some time, having to do with Starman's preforking? The thing is 
> that in my Model I initialize the database and statement handles 
> within the subs scope and not globally.
>
> DBD:mysql 4.031
> DBI 1.633
>

If you are doing the database connection management yourself, I strongly 
suggest you look at DBIx::Connector.
Its fork (and thread) safe, so you don't have to worry about such issues :)


Hope that helps,
   Russell.



More information about the dancer-users mailing list