-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: connection recovery #2108
Merged
Merged
fix: connection recovery #2108
Changes from 35 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
57e1e11
fix: implements connection recovery and moves all `.request` to be ma…
ganchoradkov f0470a1
refactor: removes redundant await
ganchoradkov a2ef387
chore: enables debug logs
ganchoradkov 16e9e64
Merge branch 'v2.0' into fix/connection-recovery
ganchoradkov 6f8b9f1
feat: reinitialize clients on failed connect
ganchoradkov 6c95cd8
chore: updates vitest
ganchoradkov 7ad4f37
chore: removes `--no-threads`
ganchoradkov 10d5551
chore: removes `--no-threads`
ganchoradkov 384c1e6
refactor: rm session extend test from integration
ganchoradkov 4d69d10
refactor: restructure integration tests to reuse clients
ganchoradkov 74314cd
refactor: implements `initTwoPairedClients` and uses it throughout te…
ganchoradkov 7d659a5
refactor: lifecycle tests to use `initTwoPairedClients`
ganchoradkov 38dbafe
fix: catch `socket hang up`
ganchoradkov 51022c1
chore: log connection status
ganchoradkov 05ad53f
chore: set isOnline timeout
ganchoradkov 4f8c6ca
refactor: replaces isOnline with isReachable
ganchoradkov a0228ea
chore: log connection status on init
ganchoradkov d6c895e
chore: rm isReachable
ganchoradkov 72405be
refactor: adds expiring promise to connect
ganchoradkov 2a8b1cc
chore: prettier
ganchoradkov 97a5713
feat: updates json-rpc provider
ganchoradkov 8b27da4
refactor: adds initTwoClients to expiringPromise
ganchoradkov 6ef31fc
chore: disables debug logs
ganchoradkov 726cc2c
chore: updates json-rpc provider
ganchoradkov 9174719
refactor: retry on flaky segfaults
ganchoradkov 342e1f9
chore: set --segfault-retry=3 on all relay tests
ganchoradkov df8e091
refactor: --dangerouslyIgnoreUnhandledErrors on xregion & lifecycle t…
ganchoradkov 294f2df
chore: rm invalid argument
ganchoradkov bb72c93
Merge branch 'v2.0' into fix/connection-recovery
ganchoradkov e605f93
chore: rm console logs
76859de
chore: updates json rpc provider package
f401117
Merge branch 'fix/connection-recovery' of github.com:WalletConnect/wa…
fbb89af
Merge branch 'v2.0' into fix/connection-recovery
ganchoradkov 3f39143
Merge branch 'v2.0' into fix/connection-recovery
ganchoradkov eb6c4e1
Merge branch 'v2.0' into fix/connection-recovery
5c11984
refactor: uses `isValidArray` for batchSubscribe result
c71a6cf
feat: adds additional stalled connection errors
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw your bullet on this:
I'm assuming this is simply removing unnecessary layering/indirection for
.request
by takingprovider
out of the equation or is there more to it I'm not seeing here at first glance?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having all requests go through the relayer gives more control such as awaiting the connection to open before submitting the request