Thanks everyone, It looks like the database connection being dropped was the problem. Im using a mysql database so I think Mojo::mysql might be a good option to go with as it handles dropped database connections.
One thing that concerns me is that Mojo::mysql does not use the standard 'fetchrow_hashref' and 'prepare' from DBI this means a lot of changes to my code it will not be a drop in replacement. Im concerned that there is no way to prepare statements is Mojo::mysql a commonly used module is it a god choice to go with? -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
