miracle2k / onkyo-eiscp

Control Onkyo A/V receivers over the network; usuable as a script, or as a Python library.
MIT License
466 stars 110 forks source link

Detect when socket has been disconnected to force a reconnection #153

Closed dannytrigo closed 6 months ago

dannytrigo commented 7 months ago

Using the async API with the poll loop, it seems my socket gets disconnected at some point and then recv returns 0 bytes, and the header parsing fails. This forces a disconnect so that the loop can reopen the socket

dannytrigo commented 6 months ago

Covered in https://github.com/miracle2k/onkyo-eiscp/pull/155