Browse Source

autoping and autoreconnect for site connections

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
d8ab0f3539
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      earwigbot/wiki/site.py

+ 6
- 0
earwigbot/wiki/site.py View File

@@ -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):


Loading…
Cancel
Save