py-substrate-interface icon indicating copy to clipboard operation
py-substrate-interface copied to clipboard

subscribe_block_headers connection error handling

Open gilmouta opened this issue 4 years ago • 0 comments

When subscribing to new block headers, using the subscribe_block_headers method, the call hangs if the RPC endpoint becomes unreachable. Even if the endpoint becomes reachable again, the call will hang forever. This makes recovering from networking issues or RPC endpoint issues impossible.

Is it possible to have the subscription abort/raise an exception in case of a connection failure?

gilmouta avatar Aug 20 '21 15:08 gilmouta