-
Notifications
You must be signed in to change notification settings - Fork 30
transport_service: Improve connection stability by downgrading connections on substream inactivity #260
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
Merged
Merged
transport_service: Improve connection stability by downgrading connections on substream inactivity #260
Changes from 27 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
8495a9b
transport_service: Add logs when the receiver is closed
lexnv 70511ae
tcp/connection: Move handling of yamux substream to dedicated function
lexnv 94ac0f5
tcp/connection: Move handling of negotiated substreams to dedicated fn
lexnv 2b87e86
tcp/connection: Move handling of protocol commands to dedicated fn
lexnv 2f917e1
tcp: Add endpoint to logs
lexnv 50cbd34
tcp: Adjust handler fns to return Result<bool>
lexnv 0004aea
protocol-set: Extend OpenSubstream with connection ID
lexnv 0071b71
transport-service: Add keepalive timeout tracker for connections
lexnv 4e20728
transport-service: Use connection tracker
lexnv e2ad0c7
tests: Adjust to new interface and downgrade a few logs
lexnv a327ac4
transport-service/tests: Check connections are downgraded
lexnv 67cc183
transport-service/tests: Check substream opening resets keep alive
lexnv 9ad7f7b
transport-service/tests: Ensure service is polled enough times
lexnv 30ba5be
tcp: TcpConnection no longer needs the connection ID field
lexnv e32b925
Merge remote-tracking branch 'origin/master' into lexnv/stable-connec…
lexnv 177cc92
transport-service/tests: Test assumptions for dropping connections on
lexnv 52cd146
transport-service/tests: Extend test for multiple substreams being
lexnv 35c67f0
transport-service: Simplify keep alive hashmap tracking
lexnv 38665fd
transport-service: Replace FuturesUnordered with more efficient
lexnv 71571a8
transport-service: Upgrade connection on substream activity
lexnv b28aa67
transport_service: Ensure proper ordering
lexnv d3058eb
transport_service: Break down logic to multiple fns
lexnv fa9ab26
transport-service/tests: Keep track of connection ordering
lexnv eedad30
transport-service: Remove next stale connections
lexnv 4aebc0d
transport-service/tests: Ensure the connection is upgraded
lexnv ff13252
transport-service/tests: Ensure next stale connections are removed
lexnv 7ff145a
transport-service/tests: Ensure downgrading works after timeout
lexnv 5dfdc69
transport_service: Simplify keep alive tracker by using futuresunordered
lexnv bb889df
transport_service: Populate futures on substream activity
lexnv e0c66b7
transport_service: Wake the cx.waker on filtering out Poll::Ready events
lexnv ee21a8d
Merge remote-tracking branch 'origin/master' into lexnv/stable-connec…
lexnv 0854bca
Update src/protocol/transport_service.rs
lexnv cb9e49c
transport_service: Rename elapsed variable
lexnv 3cd3061
protocol: Rename try_open to try_upgrade
lexnv 6988a0c
Merge branch 'master' into lexnv/stable-connections
lexnv 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
This file contains hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.