Skip to content

Conversation

@dmitry-markin
Copy link
Contributor

This PR upgrades litep2p to the latest version, bringing multiple fixes with this release.

Specifically, this release enhances WebSocket stability by resolving AsyncWrite errors and ensuring that partial writes during the negotiation phase no longer trigger connection failures.

It also fixes large file download using Bitswap protocol by grouping blocks into batches of <= 2 MiB.

@dmitry-markin dmitry-markin self-assigned this Jan 21, 2026
@dmitry-markin dmitry-markin added the T0-node This PR/Issue is related to the topic “node”. label Jan 21, 2026
- name: sc-network
bump: major
- name: sc-network-types
bump: major
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmitry-markin both are majors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semver check thinks so.

Copy link
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job here! I would backport this on 2509 and 2512 as well, since it contains some extra fixes for stability which might improve collator protocols 🙏

cc #10425

@dmitry-markin dmitry-markin added A4-backport-stable2509 Pull request must be backported to the stable2509 release branch A4-backport-stable2512 Pull request must be backported to the stable2512 release branch labels Jan 21, 2026
@dmitry-markin dmitry-markin added this pull request to the merge queue Jan 21, 2026
Merged via the queue into master with commit 0a38650 Jan 21, 2026
256 of 262 checks passed
@dmitry-markin dmitry-markin deleted the dm-upgrade-litep2p branch January 21, 2026 16:23
@github-project-automation github-project-automation bot moved this to Blocked ⛔️ in Networking Jan 21, 2026
@paritytech-release-backport-bot

Created backport PR for stable2509:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-10859-to-stable2509
git worktree add --checkout .worktree/backport-10859-to-stable2509 backport-10859-to-stable2509
cd .worktree/backport-10859-to-stable2509
git reset --hard HEAD^
git cherry-pick -x 0a386503ab5d3f77d30031e539640c89b254b492
git push --force-with-lease

paritytech-release-backport-bot bot pushed a commit that referenced this pull request Jan 21, 2026
This PR upgrades litep2p to the latest version, bringing multiple fixes
with this release.

Specifically, this release enhances WebSocket stability by resolving
`AsyncWrite` errors and ensuring that partial writes during the
negotiation phase no longer trigger connection failures.

It also fixes large file download using Bitswap protocol by grouping
blocks into batches of <= 2 MiB.

(cherry picked from commit 0a38650)
@paritytech-release-backport-bot

Successfully created backport PR for stable2512:

EgorPopelyaev added a commit that referenced this pull request Jan 22, 2026
Backport #10859 into `stable2512` from dmitry-markin.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

---------

Co-authored-by: Dmitry Markin <dmitry@markin.tech>
Co-authored-by: Egor_P <egor@parity.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2509 Pull request must be backported to the stable2509 release branch A4-backport-stable2512 Pull request must be backported to the stable2512 release branch T0-node This PR/Issue is related to the topic “node”.

Projects

Status: Blocked ⛔️

Development

Successfully merging this pull request may close these issues.

4 participants