alibaba / alibaba/tidevice

请问 我使用Python 调用Device(udid) 后 如果将这个连接回收掉呢

Open
#266 0 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

Python 直接调用Device() 这个类 现在出现的问题是 一但我调用完以后,把手机拔掉就会报 drain error
![image](https://user-images.githubusercontent.com/40492728/196837039-be83009a-000c-42eb-a099-fbcdb4c3a0a1.png)

请问 有什么办法可以在使用完以后,把socket链接手动回收吗?

调用的方法
![image](https://user-images.githubusercontent.com/40492728/196837225-417fb985-3c77-46db-b7a7-d1439963d261.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Python Device() call and trace the socket teardown associated with the reported drain error; reproduce the problem by disconnecting the phone after use. Done means there is a documented or tested way to release the connection without triggering the drain error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.