[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [weather/master] Add workaround for concurrency problem in database access. Fixes #5521



commit af95f0777831d8035b27f06163b914e5cb98e705
Author: Christian Fromme <kaner@xxxxxxxxxx>
Date:   Sun Oct 5 12:49:49 2014 +0200

    Add workaround for concurrency problem in database access. Fixes #5521
---
 weather/settings.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/weather/settings.py b/weather/settings.py
index c665460..9c6ecb5 100644
--- a/weather/settings.py
+++ b/weather/settings.py
@@ -24,9 +24,14 @@ DATABASES = {
         'PASSWORD': '',                  # Not used with sqlite3.
         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
+        'OPTIONS': { 'timeout': 20, },
     }
 }
 
+DATABASE_OPTIONS: {
+        'timeout': 20,
+}
+
 # Local time zone for this installation. Choices can be found here:
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits