Skarsnik / QUsb2snes

A Qt based webserver for usb2snes. Users: go check usb2snes.com
https://skarsnik.github.io/QUsb2snes/
GNU General Public License v3.0
52 stars 34 forks source link

Qusb2snes waits forever for GetAddress response if RetroArch emulator is quit #86

Open JamesDunne opened 3 years ago

JamesDunne commented 3 years ago

If a GetAddress opcode is started and the RetroArch emulator is quit, qusb2snes will wait forever for a UDP response from the emulator. In this case, the WebSocket will never respond to the application with the binary data response for the GetAddress opcode.

read tcp 127.0.0.1:56920->127.0.0.1:8080: i/o timeout

Ideally, qusb2snes should detect that the emulator has quit (via timeout for RetroArch since it is UDP) and close the related WebSocket connections.

Skarsnik commented 3 years ago

There is already a timeout for that. It's weird it does not work