libimobiledevice / libimobiledevice-glue

A library with common code used by libraries and tools around the libimobiledevice project
GNU Lesser General Public License v2.1
86 stars 69 forks source link

select does not return correctly when the device is disconnected #18

Closed AiXanadu closed 2 years ago

AiXanadu commented 2 years ago

I am listening to devices in an application. When a device is connected, I read some device data. Now, when I quickly unplug the device, it may return 1 (device disconnected) if run right before select() , however subsequent send/recv blocks and never returns.

Here is some information I found

image

Am I doing something wrong? (Currently only tested on Windows)