Skip to content

Commit

Permalink
Bug 1840701 - [marionette] TcpTransport:receive needs to return immed…
Browse files Browse the repository at this point in the history
…iately when socket was closed. r=webdriver-reviewers,jgraham, a=testonly

Differential Revision: https://phabricator.services.mozilla.com/D182622
  • Loading branch information
whimboo committed Jul 7, 2023
1 parent 0bdfc4a commit c43ed2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/marionette/client/marionette_driver/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def receive(self, unmarshal=True):

try:
chunk = sock.recv(recv_bytes)
except OSError:
except socket.timeout:
# Lets handle it with our own timeout check
continue

if not chunk:
Expand Down

0 comments on commit c43ed2f

Please sign in to comment.