libimobiledevice / libimobiledevice-glue

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

Occasionally blocks in send() when device is disconnected quickly. #22

Closed AiXanadu closed 2 years ago

AiXanadu commented 2 years ago

If usbmuxd notifies the device to disconnect, but the application is sending data, it may cause blocking in socket_send() . When running on Windows, this bug occurs sporadically with high frequency. So I added an interface that might help some applications. And, if you ignore this interface, it will not affect the original logic.