-
Notifications
You must be signed in to change notification settings - Fork 30
ping: Conform to the spec & exclude from connection keep-alive #416
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
dmitry-markin
merged 30 commits into
paritytech:master
from
dharjeezy:dami/repeat-request-periodically
Feb 27, 2026
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
80e7fdd
Repeat ping request periodically
dharjeezy d6b3909
keep substream open by introducing stateful peer
dharjeezy 9f8fe8c
use stream map for efficiency
dharjeezy f26e25c
separate inbound and outbound streams
dharjeezy 9c535ed
fmt
dharjeezy 2401ca7
review changes
dharjeezy fd0a305
review changes
dharjeezy b4e6a3b
nit
dharjeezy 0b5f3c9
Merge branch 'master' of https://github.com/dharjeezy/litep2p into da…
dharjeezy 4f32e97
include param
dharjeezy 51792f5
Handle edge-cases and older (buggy) litep2p versions
dmitry-markin 415029a
WIP: fix connection keep alive
dmitry-markin 70c7848
Fix connection keep-alive for TCP transport
dmitry-markin fcbfc5a
Fix connection keep-alive for other transports
dmitry-markin d9529b3
Update tests
dmitry-markin a26c710
Merge remote-tracking branch 'upstream/master' into dami/repeat-reque…
dmitry-markin eda96c9
Improve docs
dmitry-markin 70cdbee
More doc improvements
dmitry-markin ef230ed
Fix request-response timeout tests
dmitry-markin 4070565
Apply review suggestions
dmitry-markin 65b024d
Keep TCP connections with `SubstreamKeepAlive::Yes` substreams
dmitry-markin 938fbe6
Keep other connections with `SubstreamKeepAlive::Yes` substreams alive
dmitry-markin e2151cd
minor: make clippy happy
dmitry-markin d388dca
minor: doc
dmitry-markin 6b2e674
minor: doc
dmitry-markin 838542f
minor: typo
dmitry-markin a6d81a1
Revert enabling all features by default
dmitry-markin 622a349
Separate names for opening/lifetime permits
dmitry-markin b8d73cf
Make pings async
dmitry-markin 2ab2bf7
Merge remote-tracking branch 'origin/master' into dm-ping-keep-alive
dmitry-markin 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
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.
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.
Nit: Is cargo doc check ignoring missings docs on public methods? We should also document this and state the defaults (same for above in public interfaces)
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.
litep2p doesn't have
#![warn(missing_docs)]set. But this is for another PR :)