Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host #131

Open
ok-oldking opened this issue Jun 1, 2024 · 0 comments

Comments

@ok-oldking
Copy link

ok-oldking commented Jun 1, 2024

def read(self, n: int) -> bytes:
      try:
          return self._read_fully(n)
      except socket.timeout:
          raise AdbTimeout("adb read timeout")

read的时候,如果adb.exe被别的进程杀掉可能会报ConnectionResetError,是否也catch尝试重连?
File "D:\projects\ok-baijing\venv\Lib\site-packages\adbutils_adb.py", line 106, in _read_fully
chunk = self.conn.recv(t)
^^^^^^^^^^^^^^^^^
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant