Browse Source

Remove aiohttp bug workaround; follow up to prior

patch-2
Neil Booth 6 years ago
parent
commit
0b95badf5c
  1. 8
      electrumx/server/daemon.py

8
electrumx/server/daemon.py

@ -150,14 +150,6 @@ class Daemon(object):
except WorkQueueFullError:
log_error('work queue full.')
on_good_message = 'running normally'
except asyncio.CancelledError as e:
# aiohttp bug - it raises a CancelledError (!!) if the transport is
# closing; presumably bitcoind is busy and closes the connection early.
# See https://github.com/aio-libs/aiohttp/issues/2499
if 'closing transport' not in str(e):
raise
log_error('disconnected.')
on_good_message = 'connection restored'
await asyncio.sleep(retry)
retry = max(min(self.max_retry, retry * 2), self.init_retry)

Loading…
Cancel
Save