Skip to content
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: add reqq field support #2246

Merged
merged 1 commit into from
Jan 20, 2022
Merged

feat: add reqq field support #2246

merged 1 commit into from
Jan 20, 2022

Conversation

paullouisageneau
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix
[X] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)

This PR adds support for the reqq field in the enhanced header, as described in BEP 10. The reqq field allows a client to specify the maximum number of outstanding requests it supports.

Which issue (if any) does this pull request address?

It implements the last part of #1995.

Is there anything you'd like reviewers to focus on?

Honoring the field properly requires to change the logic in _updateWire() to make maxOutstandingRequests a hard limit.

@paullouisageneau
Copy link
Contributor Author

I rebased on current master. Is it expected that node 16 tests are stuck?

@DiegoRBaquero DiegoRBaquero merged commit 8de2a13 into webtorrent:master Jan 20, 2022
@paullouisageneau paullouisageneau deleted the reqq branch January 20, 2022 14:56
webtorrent-bot pushed a commit that referenced this pull request Jan 20, 2022
# [1.7.0](v1.6.0...v1.7.0) (2022-01-20)

### Features

* add reqq field support ([#2246](#2246)) ([8de2a13](8de2a13))
@webtorrent-bot
Copy link
Collaborator

🎉 This PR is included in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@paullouisageneau
Copy link
Contributor Author

@DiegoRBaquero Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants