Bug 904490 - Extend marionette connection timeout. r=jgriffin
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 14 Aug 2013 16:45:12 +0800
changeset 150566 91c68c2e5089951febac31c16942e5b5bc2dfb64
parent 150565 a1884c9b556b1466895968796b09f66e598db954
child 150567 c20eb908b76907fb69facf75c4f115b98ff764d7
push id4254
push userakeybl@mozilla.com
push dateTue, 17 Sep 2013 14:18:33 +0000
treeherdermozilla-aurora@9edd56e694b0 [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: