chris-belcher / electrum-personal-server

Maximally lightweight electrum server for a single user
MIT License
601 stars 110 forks source link

Handle uncaught exception when electrum connects #200

Closed ghost closed 4 years ago

ghost commented 4 years ago

IOError raised from ssl.wrap_socket was causing eps 0.2.1 to crash when electrum wallet attempted to connect. Quietly catch the IOError and handle the same way as other connection errors so that eps keeps listening for a connection.

Fixes #198, fixes #197.

chris-belcher commented 4 years ago

Thanks for the PR. The issues talk about raising OSError rather than IOError, but I just checked and it seems both those errors will be caught by catching IOError.

Merging. Will do a bug fix release right now hopefully.

chris-belcher commented 4 years ago

New version with this in released