src/modules/misc.py
changeset 388 5a08791fb814
parent 386 5cd680466abe
child 404 e5329e84b9a8
--- a/src/modules/misc.py	Fri Jun 13 13:58:32 2008 -0700
+++ b/src/modules/misc.py	Fri Jun 13 14:18:35 2008 -0700
@@ -308,3 +308,11 @@
 
                 return False, msg
 
+
+# Set the maximum number of timeouts before we giveup.  This can
+# be adjusted by setting the environment variable PKG_TIMEOUT_MAX
+MAX_TIMEOUT_COUNT = 4
+
+class TransferTimedOutException(Exception):
+        def __init__(self, args = None):
+                self.args = args