cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.98k stars 350 forks source link

Add a timeout or keepalive in case of unexpected disconnection of the client #211

Closed csphoenix1 closed 3 years ago

csphoenix1 commented 3 years ago

Hi :)

When my USBIP client (eg. Windows) crash, or endured an unfortunate disconnection, the device binded on the remote USBIP server is still attached. So when my client has just restarted, it can't attach the device, because the device is already attached.

Is there a possibility to add a feature to avoid it? Eg. add the timeout or a keepalive between client and host. In that case, if the client not answer the server, the server will detach the device. Eg. or, let the client the availability to force a detach/attach with the server ?

Thank you :)

cezanne commented 3 years ago

@csphoenix1 : There are similar issues: #33 #160

Your suggested methods are possible only through the cooperation of a usbip server.

csphoenix1 commented 3 years ago

Thank Cezanne. I will check that :)

cezanne commented 3 years ago

@csphoenix1 : Please, check this.

The issue will be closed. Please reopen if you need.