From 8033833be226ed515c344664b264d7a1d049dba2 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Mon, 3 Oct 2011 15:52:40 +0200 Subject: [PATCH] ConnectionPool should now autoreconnect. --- snurr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snurr.py b/snurr.py index cff245d..c2b576a 100755 --- a/snurr.py +++ b/snurr.py @@ -91,7 +91,8 @@ class IRCActions(): return adbapi.ConnectionPool(settings.DB_API_ADAPTER, host=settings.DB_HOST, user=settings.DB_USER, passwd=settings.DB_PASSWORD, db=settings.DB_NAME, - charset = "utf8", use_unicode = True) + charset="utf8", use_unicode=True, + cp_reconnect=True) def ping(self, host): # TODO rewrite async