vtnerd / monero-lws

Monero Light Wallet Server (scans monero viewkeys and implements mymonero API). Fast LMDB backend.
BSD 3-Clause "New" or "Revised" License
76 stars 28 forks source link

Fix ZeroMQ invalid REQ/REP state after read timeout. #125

Closed vtnerd closed 4 months ago

vtnerd commented 4 months ago

After a read timeout, the thread-local ZMQ client is expecting a read, and not send on the REQ socket. This attempts to read+discard 1 message before retrying the REQ send. This has proven effective at recovering from a temporarily unavailable daemon.