diff server/utils.py @ 329:740438e21ea0

Fix bugs in server code (try actually running it)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 04 Jun 2012 23:50:42 +0800
parents 46070aaf29ea
children 44c5ab5ea879
line wrap: on
line diff
--- a/server/utils.py	Sat May 26 10:17:27 2012 +0800
+++ b/server/utils.py	Mon Jun 04 23:50:42 2012 +0800
@@ -5,6 +5,7 @@
 import select
 
 DEFAULT_TRIES = 3
+READLINE_SELECT_TIMEOUT = 20
 
 __all__ = ('monotonic_time', 'retry')
 
@@ -43,11 +44,8 @@
 # Must be used as "@retry()" if arguments are defaulted
 def retry(retries=DEFAULT_TRIES, try_time = 1):
     def inner(func):
-        print "inner"
         def new_f(*args, **kwargs):
-            print "newf"
             for i in range(retries):
-                print "retry %d" % i
                 d = func(*args, **kwargs)
                 if d:
                     return d