-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(swarm): add ConnectionHandler::connection_keep_alive
default implementation
#4703
Closed
leonzchang
wants to merge
33
commits into
libp2p:master
from
leonzchang:feat/ConnectionHandler-default-impl
Closed
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e5aaa04
add no_keep_alive fn to Stream and counter to Connection
leonzchang 55525cc
call fn no_keep_alive when ping protocol stream received
leonzchang 340ecc9
apply suggested fixes
leonzchang 55b2c6d
apply suggested fixes
leonzchang e07e274
update root Cargo.toml
leonzchang 0fc1a2a
fix rustdoc intra-doc links
leonzchang f5a7cd4
fix tests
leonzchang b9f0039
compute the shutdown only when negotiated streams are finished
leonzchang 346ba26
remove stream tracking code in protocols
leonzchang 9dc3ff3
apply suggested fixes
leonzchang c1b5d98
correct crate version
leonzchang 3006d84
add allow deprecated to compute_new_shutdown
leonzchang 8b276e5
fix rustfmt
leonzchang 7b29afe
update libp2p-noise version in root Cargo.toml
leonzchang 9cc7d93
Merge branch 'master' into feat/stream-counter
thomaseizinger 2ed8071
Fix compile error
thomaseizinger ad8104d
Always compute shutdown
thomaseizinger 8f34ba8
Merge branch 'master' into feat/stream-counter
leonzchang 5db7968
fix checking keep alive status condition in relay
leonzchang aeb0480
Merge branch 'master' into feat/stream-counter
leonzchang 464b803
Merge branch 'master' into feat/stream-counter
leonzchang 021da14
dispatch no_keep_alive on outbound streams in ping protocols
leonzchang 9c049e6
Merge branch 'master' into feat/stream-counter
leonzchang f6531aa
remove protocols keep alive stream check
leonzchang b8dea1e
Merge branch 'master' into feat/stream-counter
leonzchang ae19cc2
fix idiomatic return
leonzchang 1837ad6
Merge branch 'master' into feat/stream-counter
leonzchang 77b840e
apply partial suggested fixes
leonzchang b9c37fc
add connection_keep_alive default impl
leonzchang 8a22bc8
update changelog & docs
leonzchang 7401ed2
remove the remaining KeepAlive::Until & related test
leonzchang 20a6582
remove unuse import & KeepAlive::Until related tests
leonzchang c8481fe
Merge branch 'feat/stream-counter' into feat/ConnectionHandler-defaul…
leonzchang 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 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
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
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.
I think we need to completely overhaul this together with #4595. What do you think of merging this PR into #4595? It is so closely related, I think it makes sense to just merge it as a single-patch.
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.
Sure, what do your think we also change
KeepAlive
to boolean in #4595There 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.
I think it makes sense. With only two variants, we don't really gain anything from having another type and I cannot see how somebody could misinterpret what
true
andfalse
mean in this case.