-
Notifications
You must be signed in to change notification settings - Fork 275
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
Adding an option to enable/disable TCP_NODELAY socket option #1320
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1320 +/- ##
============================================
- Coverage 72.13% 72.11% -0.03%
- Complexity 6455 6456 +1
============================================
Files 469 469
Lines 37071 37081 +10
Branches 4660 4660
============================================
- Hits 26743 26740 -3
- Misses 9087 9103 +16
+ Partials 1241 1238 -3
Continue to review full report at Codecov.
|
85616bc
to
085213f
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.
A few comments.
ambry-api/src/main/java/com.github.ambry/config/ConnectionPoolConfig.java
Outdated
Show resolved
Hide resolved
ambry-network/src/main/java/com.github.ambry.network/BlockingChannel.java
Outdated
Show resolved
Hide resolved
ambry-network/src/main/java/com.github.ambry.network/BlockingChannel.java
Outdated
Show resolved
Hide resolved
ambry-network/src/main/java/com.github.ambry.network/BlockingChannelInfo.java
Outdated
Show resolved
Hide resolved
085213f
to
3b9a541
Compare
This change adds a configuration property to enable or disable TCP_NODELAY socket option in BlockingChannel (used for replication only ATM)
3b9a541
to
1c00cb7
Compare
this(host, port, readBufferSize, writeBufferSize, readTimeoutMs, connectTimeoutMs, true); | ||
} | ||
|
||
public BlockingChannel(String host, int port, ConnectionPoolConfig config) { |
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.
optional: can be package-private (public
can be removed)
This change adds a configuration property to enable or disable TCP_NODELAY socket option in BlockingChannel (used for replication only ATM) and adds an additional (optional) parameter for the same. If the parameter is not provided - a default 'true' (enabled) is assumed. This means that the tests (which have not been updated) will have TCP_NODELAY socket option set to 'true'.