summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramnesia <amnesia@boum.org>2012-09-13 11:27:20 +0200
committerTails developers <amnesia@boum.org>2012-09-13 11:29:02 +0200
commitab344ac94677dc6297e54e579bb00b1fd427d83b (patch)
treef6fcb39b87fd06b47694cbc68bc1d9707f5a49a3
parentff866f37cdd0c5c36f903b041b8479302f4e8cee (diff)
Raise the socket library timeout to 120 seconds.
During testing, I have experienced many timeouts with the original (60 seconds) value, that don't happen with 120.
-rw-r--r--whisperBack/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisperBack/mail.py b/whisperBack/mail.py
index 73a89f4..856a6ef 100644
--- a/whisperBack/mail.py
+++ b/whisperBack/mail.py
@@ -68,7 +68,7 @@ def send_message_tls (from_address, to_address, message, host="localhost",
# We set a long timeout because Tor is slow
# XXX: this will not be necessary anymore under python 2.6, because it
# includes a timeout argument on smtplib
- socket.setdefaulttimeout(60)
+ socket.setdefaulttimeout(120)
# Send the message via our own SMTP server, but don't include the
# envelope header.