Closed Bug 1261138 Opened 9 years ago Closed 9 years ago

Cannot set socket timeout in marionette client

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(firefox47 fixed, firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox47 --- fixed
firefox48 --- fixed

People

(Reporter: jgraham, Unassigned)

Details

Attachments

(1 file)

For a couple of reasons, including an artifically limited range of values, and the transport clobbering the timeout value.
Comment on attachment 8736868 [details] MozReview Request: Bug 1261138 - Allow marionette to have any socket timeout, including None indicating no timeout, r=ato https://reviewboard.mozilla.org/r/43563/#review40145 ::: testing/marionette/client/marionette_driver/transport.py:233 (Diff revision 1) > # Unset self.sock so that the next attempt to send will cause > # another connection attempt. > self.sock = None > raise > > - self.sock.settimeout(2.0) > + with SocketTimeout(self.sock, 2.0): Good catch and clever solution.
Attachment #8736868 - Flags: review?(ato) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: