[Jifty-commit] r4927 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Jan 24 11:56:39 EST 2008
Author: sterling
Date: Thu Jan 24 11:56:39 2008
New Revision: 4927
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Handler.pm
Log:
r14924 at riddle: andrew | 2008-01-24 10:55:28 -0600
Check the database connection before handling requests.
Modified: jifty/trunk/lib/Jifty/Handler.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handler.pm (original)
+++ jifty/trunk/lib/Jifty/Handler.pm Thu Jan 24 11:56:39 2008
@@ -210,6 +210,9 @@
@_
);
+ # PING and reconnect if we've lost the database connection
+ Jifty->handle->connect;
+
$self->call_trigger('before_request', $args{cgi});
# this is scoped deeper because we want to make sure everything is cleaned
More information about the Jifty-commit
mailing list