Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jmc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/jmc/runner.py')
-rw-r--r--src/jmc/runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jmc/runner.py b/src/jmc/runner.py
index f3f9796..e5ff225 100644
--- a/src/jmc/runner.py
+++ b/src/jmc/runner.py
@@ -20,6 +20,8 @@
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
+import socket
+
from jcl.runner import JCLRunner
import jmc.model.account as account
@@ -81,6 +83,8 @@ class JMCRunner(JCLRunner):
self.db_url = "sqlite:///var/spool/jabber/jmc.db"
self.pid_file = "/var/run/jabber/jmc.pid"
self.config_file = "jmc.conf"
+ # set socket connection timeout (for IMAP and POP connections)
+ socket.setdefaulttimeout(10)
def setup_db(self):
JCLRunner.setup_db(self)