-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reconnect L1 WS stream if disconnected (#2287)
* Reconnect L1 WS stream if disconnected Ethers internally tries to reconnect once, but if that fails, it gives up and shuts down the whole provider backend. This is not good in the case of extended outages of the L1 server. This change handles errors from the underlying RPC client indicating that the connection is closed by spawning a task to reestablish the connection. This task tries until it succceeds. * Cancel reconnect task if L1 client is shut down * Rename L1 client lifecycle methods
- Loading branch information
Showing
8 changed files
with
269 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.