aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/https.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-11-07 15:43:58 +0000
committerRob Austein <sra@hactrn.net>2007-11-07 15:43:58 +0000
commit0e02c98a989c077ad5d3ce8e3ca3eee2da983ea0 (patch)
tree771e6a7d42d760164517704f4887911173e014f5 /scripts/rpki/https.py
parentab9c880096d9c14729cd375bf3255617ec33ed43 (diff)
Server side of up-down issue mostly working now.
svn path=/scripts/rpki/https.py; revision=1268
Diffstat (limited to 'scripts/rpki/https.py')
-rw-r--r--scripts/rpki/https.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/rpki/https.py b/scripts/rpki/https.py
index eec9e3a0..6c56123f 100644
--- a/scripts/rpki/https.py
+++ b/scripts/rpki/https.py
@@ -7,11 +7,17 @@ subversion repository; generalizing it would not be hard, but the more
general version should use SQL anyway.
"""
-import httplib, BaseHTTPServer, tlslite.api, glob, traceback, urlparse
+import httplib, BaseHTTPServer, tlslite.api, glob, traceback, urlparse, socket
import rpki.x509, rpki.exceptions
rpki_content_type = "application/x-rpki"
+# Setting this here is a crock, but the default is much too short and
+# this is the easiest way to make sure that all of our scripts use a
+# more reasonable value.
+
+socket.setdefaulttimeout(90) # Seconds
+
def client(msg, privateKey, certChain, x509TrustList, url):
"""Open client HTTPS connection, send a message, wait for response.