From d8ab0f3539ead0c9aedbbbd075ec353e148f04c1 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 12 Apr 2012 15:56:33 -0400 Subject: [PATCH] autoping and autoreconnect for site connections --- earwigbot/wiki/site.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/earwigbot/wiki/site.py b/earwigbot/wiki/site.py index 4a870bd..d723bdb 100644 --- a/earwigbot/wiki/site.py +++ b/earwigbot/wiki/site.py @@ -513,6 +513,12 @@ class Site(object): if "read_default_file" not in args and "user" not in args and "passwd" not in args: args["read_default_file"] = expanduser("~/.my.cnf") + if "autoping" not in args: + args["autoping"] = True + + if "autoreconnect" not in args: + args["autoreconnect"] = True + self._sql_conn = oursql.connect(**args) def name(self):