alibaba / alibaba/tidevice

OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

Open
#293 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

D:\download>tidevice list
Traceback (most recent call last):
File "d:\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Python36\Scripts\tidevice.exe\__main__.py", line 7, in
File "d:\python36\lib\site-packages\tidevice\__main__.py", line 972, in main
actions[args.subparser](args)
File "d:\python36\lib\site-packages\tidevice\__main__.py", line 86, in cmd_list
ds = um.device_list()
File "d:\python36\lib\site-packages\tidevice\_usbmux.py", line 80, in device_list
data = self.send_recv(payload, timeout=10)
File "d:\python36\lib\site-packages\tidevice\_usbmux.py", line 52, in send_recv
s = self.create_connection()
File "d:\python36\lib\site-packages\tidevice\_usbmux.py", line 48, in create_connection
psock = PlistSocket(self.__address, self._next_tag())
File "d:\python36\lib\site-packages\tidevice\_safe_socket.py", line 156, in __init__
super().__init__(addr)
File "d:\python36\lib\site-packages\tidevice\_safe_socket.py", line 75, in __init__
self._sock.connect(addr)
OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce `tidevice list` on Windows with the shown environment and traceback. Read `tidevice/_usbmux.py`, especially `create_connection`, then follow the socket setup in `tidevice/_safe_socket.py` through `PlistSocket`. The issue is complete when the cause of WinError 10048 is established and the command behaves correctly in the reported scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.