]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: Remove connect/command timeouts; too risky for now
authorDan Mick <dan.mick@inktank.com>
Tue, 4 Jun 2013 23:39:13 +0000 (16:39 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 7 Jun 2013 01:38:32 +0000 (18:38 -0700)
Keep 10s timeout when connecting for help descriptions, however

Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/ceph

index e5b67f6e7b8797d3a0767e4f97446ddf983469e0..a19fae159b81e5775f7a42495be2d8a4e3de4bbc 100755 (executable)
--- a/src/ceph
+++ b/src/ceph
@@ -842,7 +842,8 @@ def do_help(parser, help_all = False):
 
     def help_for_target(target):
         ret, outbuf, outs = json_command(target=target,
-                                         prefix='get_command_descriptions')
+                                         prefix='get_command_descriptions', 
+                                         timeout=10)
         if ret:
             print >> sys.stderr, \
                 "couldn't get command descriptions for {0}: {1}".\
@@ -1049,7 +1050,7 @@ def validate_command(parsed_args, sigdict, args):
         return valid_dict
 
 def json_command(target=('mon', ''), prefix=None, argdict=None, inbuf='',
-                 timeout=30):
+                 timeout=0):
     """
     Send a new_style command to a daemon using librados's
     mon_command, osd_command, or pg_command.  Prefix may be supplied
@@ -1350,7 +1351,7 @@ def main():
         childargs.remove('--')
 
     try:
-        cluster.connect(timeout=15)
+        cluster.connect()
     except KeyboardInterrupt:
         print >> sys.stderr, "connection aborted"
         return 1