Bug 904490 - Extend marionette connection timeout. r=jgriffin
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 14 Aug 2013 16:45:12 +0800
changeset 142460 91c68c2e5089951febac31c16942e5b5bc2dfb64
parent 142459 a1884c9b556b1466895968796b09f66e598db954
child 142461 c20eb908b76907fb69facf75c4f115b98ff764d7
push id233
push uservyang@mozilla.com
push dateWed, 14 Aug 2013 08:45:42 +0000
treeherderb2g-inbound@33fe5b500c08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs904490
milestone26.0a1
Bug 904490 - Extend marionette connection timeout. r=jgriffin
testing/marionette/client/marionette/client.py
--- a/testing/marionette/client/marionette/client.py
+++ b/testing/marionette/client/marionette/client.py
@@ -52,17 +52,17 @@ class MarionetteClient(object):
             response += self._recv_n_bytes(int(length) + 1 + len(length) - 10)
             return json.loads(response)
         else:
             raise InvalidResponseException("Could not successfully complete " \
                                            "transport of message to Gecko, "
                                            "socket closed?",
                                            status=ErrorCodes.INVALID_RESPONSE)
 
-    def connect(self, timeout=180.0):
+    def connect(self, timeout=240.0):
         """ Connect to the server and process the hello message we expect
             to receive in response.
         """
         self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         self.sock.settimeout(timeout)
         try:
             self.sock.connect((self.addr, self.port))
         except: