Closed
Bug 1413852
Opened 6 years ago
Closed 6 years ago
TcpTransport.receive() doesn't obey current socket timeout
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox57 fixed, firefox58 fixed)
RESOLVED
FIXED
mozilla58
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(2 files)
The method TcpTransport.connect() is first connecting the socket with the default socket timeout of 360s. Then it tries to wait for a response from Marionette server but using a with statement, which itself changes the socket timeout: https://dxr.mozilla.org/mozilla-central/rev/cd7217cf05a2332a8fd7b498767a07b2c31ea657/testing/marionette/client/marionette_driver/transport.py#195-198 The problem is that this sets the timeout directly on the socks instance but not for self.socket_timeout. As such receive() fails to take care of the shorter timeout because it uses the class' own property: https://dxr.mozilla.org/mozilla-central/rev/cd7217cf05a2332a8fd7b498767a07b2c31ea657/testing/marionette/client/marionette_driver/transport.py#144 We should change the code to make all rely on the real sock timeout. This change might fix a couple of outstanding intermittent issues, or brings us closer to the underlying issue.
Assignee | ||
Comment 1•6 years ago
|
||
If the 2s which are currently set to be used to receive the hello string are enough, is questionable. To prevent accidental socket timeouts for slower Firefox builds (debug, valgrind) I would suggest that we raise this timeout to at least 10s.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8924495 -
Flags: review?(ato)
Attachment #8924518 -
Flags: review?(ato)
Assignee | ||
Updated•6 years ago
|
Attachment #8924495 -
Flags: review?(mjzffr)
Attachment #8924518 -
Flags: review?(mjzffr)
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8924495 [details] Bug 1413852 - TcpTransport.receive() doesn't obey current socket timeout. https://reviewboard.mozilla.org/r/195770/#review201174
Attachment #8924495 -
Flags: review+
Updated•6 years ago
|
Assignee: nobody → hskupin
Comment 5•6 years ago
|
||
mozreview-review |
Comment on attachment 8924518 [details] Bug 1413852 - Improve failure message for socket connection attempts. https://reviewboard.mozilla.org/r/195782/#review201176
Attachment #8924518 -
Flags: review+
Assignee | ||
Updated•6 years ago
|
Attachment #8924495 -
Flags: review?(mjzffr)
Attachment #8924495 -
Flags: review?(ato)
Attachment #8924518 -
Flags: review?(mjzffr)
Attachment #8924518 -
Flags: review?(ato)
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de33c2cf6efb TcpTransport.receive() doesn't obey current socket timeout. r=automatedtester https://hg.mozilla.org/integration/autoland/rev/06a8c0a33225 Improve failure message for socket connection attempts. r=automatedtester
Assignee | ||
Comment 7•6 years ago
|
||
Ryan already pushed it even to beta: https://hg.mozilla.org/releases/mozilla-beta/rev/92ee9c76e7f8d61c39288f662d2e99b2ddf63c38 https://hg.mozilla.org/releases/mozilla-beta/rev/92ee9c76e7f8d61c39288f662d2e99b2ddf63c38
status-firefox57:
--- → fixed
status-firefox58:
--- → affected
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/de33c2cf6efb https://hg.mozilla.org/mozilla-central/rev/06a8c0a33225
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•4 months ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•