From 6fe1129f4249872cb9ca74dcca3ad88a805d1063 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Fri, 10 Sep 2010 05:07:00 +0000 Subject: [PATCH] ENHANCEMENT: set connection timeout to 60 sec --- code/SQLite3Database.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/SQLite3Database.php b/code/SQLite3Database.php index 8e1e66e..dd0fc93 100644 --- a/code/SQLite3Database.php +++ b/code/SQLite3Database.php @@ -89,6 +89,7 @@ class SQLite3Database extends SS_Database { } $this->dbConn = new SQLite3($file, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $parameters['key']); + if(method_exists('SQLite3', 'busyTimeout')) $this->dbConn->busyTimeout(60000); //By virtue of getting here, the connection is active: $this->active=true;