PROTON-1040: ensure timeout is never None

Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/07dc168b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/07dc168b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/07dc168b

Branch: refs/heads/go1
Commit: 07dc168b577f88921e97f3b6874741583e93e345
Parents: c0917a0
Author: Gordon Sim <[email protected]>
Authored: Wed Nov 4 20:10:38 2015 +0000
Committer: Gordon Sim <[email protected]>
Committed: Wed Nov 4 20:11:14 2015 +0000

----------------------------------------------------------------------
 proton-c/bindings/python/proton/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/07dc168b/proton-c/bindings/python/proton/utils.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/utils.py 
b/proton-c/bindings/python/proton/utils.py
index e1b084f..bc44adf 100644
--- a/proton-c/bindings/python/proton/utils.py
+++ b/proton-c/bindings/python/proton/utils.py
@@ -192,7 +192,7 @@ class BlockingConnection(Handler):
     """
     def __init__(self, url, timeout=None, container=None, ssl_domain=None, 
heartbeat=None):
         self.disconnected = False
-        self.timeout = timeout
+        self.timeout = timeout or 60
         self.container = container or Container()
         self.container.timeout = self.timeout
         self.container.start()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to