Bug 904490 - Extend marionette connection timeout. r=jgriffin
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 14 Aug 2013 16:45:12 +0800
changeset 142582 91c68c2e5089951febac31c16942e5b5bc2dfb64
parent 142581 a1884c9b556b1466895968796b09f66e598db954
child 142583 c20eb908b76907fb69facf75c4f115b98ff764d7
push id25102
push userryanvm@gmail.com
push dateWed, 14 Aug 2013 21:03:59 +0000
treeherdermozilla-central@bb3674e35288 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs904490
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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: