-
Notifications
You must be signed in to change notification settings - Fork 291
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 experimental yamux support (networking) #7437
Add experimental yamux support (networking) #7437
Conversation
3a71c71
to
b1ce159
Compare
debed0f
to
e09953d
Compare
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.
LGTM
gradle/versions.gradle
Outdated
@@ -58,10 +58,8 @@ dependencyManagement { | |||
} | |||
|
|||
dependencySet(group: 'io.netty', version: '4.1.96.Final') { |
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: Libp2p has a bit older version 4.1.90
but it seems ok. May upgrade Libp2p on the next release
e09953d
to
57d8a7a
Compare
45e531a
to
0527fcd
Compare
ff2257d
to
63d902d
Compare
|
||
// yamux MUST take precedence during negotiation | ||
if (config.isYamuxEnabled()) { | ||
// TODO: setting maxBufferedConnectionWrites to 150 MiB to handle overflowing the write |
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.
outstanding todo? is there a ticket?
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.
@StefanBratanov It looks like the default config is already 150MiB? https://github.com/libp2p/jvm-libp2p/pull/325/files
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.
good point, added one #7532 will reference it in the comment
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.
@StefanBratanov It looks like the default config is already 150MiB? https://github.com/libp2p/jvm-libp2p/pull/325/files
We closed that PR, agreed it's better to override it in Teku instead for the time being, since 150 MiB was excessive as a default.
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.
Ah my bad, didn't notice it was closed instead of merged ;)
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.
LGTM just a todo question
63d902d
to
b927846
Compare
PR Description
jvm-libp2p
to 1.0.1 with improved yamux support in comparison to 1.0.0maxBufferedConnection
writes to 150 MiB as a band-aid fix untill more optimized yamux backpressure is implemented in jvm-libp2p--Xp2p-yamux-enabled
to enable/disable yamux. Default will be false until tested extensively and newer version of libp2p is released with improved backpressure.MplexFirewall
toMuxFirewall
and made it compatible with yamux frames.jitpack.io
repo. It is required for transitive dependency in libp2p (multibase-java
)netty-codec-http
andnetty-handler
because they are runtime dependencies in libp2p (not exposed by the library)Fixed Issue(s)
N/A
Documentation
doc-change-required
label to this PR if updates are required.Changelog