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

Add Yamux specific unit tests #298

Merged
merged 5 commits into from
Aug 15, 2023

Conversation

StefanBratanov
Copy link
Collaborator

fixes #289

* @param data the data segment.
*/
class YamuxFrame(val id: MuxId, val type: Int, val flags: Int, val lenData: Long, val data: ByteBuf? = null) :
class YamuxFrame(val id: MuxId, val type: Int, val flag: Int, val length: Long, val data: ByteBuf? = null) :
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe the field is still flags. Though I'm not sure there are use cases when more than one flag is set.
https://github.com/hashicorp/yamux/blob/master/spec.md#framing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right. Fixed it.

@Nashatyrev Nashatyrev merged commit 7b853f6 into libp2p:v1.0.0 Aug 15, 2023
2 checks passed
@StefanBratanov StefanBratanov deleted the yamux_unit_tests branch August 15, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants