mirror of https://github.com/apache/cloudstack.git
The HTTPConnection object times out too soon when status is being polled. This
depends on python's internal socket implementation. Added an explicit 3m timeout. Test code MUST NOT induce sleeps longer than 3m, instead check status periodically to keep the HTTPConnection alive. reviewed-by: Chirag Jog <chirag@clogeny.com>
This commit is contained in:
parent
9922f214bb
commit
876ad2ba1f
|
|
@ -18,7 +18,7 @@ class cloudConnection(object):
|
|||
self.apiKey = apiKey
|
||||
self.securityKey = securityKey
|
||||
self.mgtSvr = mgtSvr
|
||||
self.connection = httplib.HTTPConnection("%s:%d"%(mgtSvr,port))
|
||||
self.connection = httplib.HTTPConnection("%s:%d"%(mgtSvr,port), timeout=180)
|
||||
self.port = port
|
||||
self.logging = logging
|
||||
if port == 8096:
|
||||
|
|
|
|||
Loading…
Reference in New Issue