-
Notifications
You must be signed in to change notification settings - Fork 542
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
ClientBootstrap and ServerBootstrap should accept socket options #85
Comments
Dear all,
Hi. I am a new of here but I want to have some contribution. How can I
catch up? I have learned C++ primer.
What I next step?
Thanks.
2017-02-14 7:54 GMT+08:00 Enis Soztutar <[email protected]>:
… One can configure socket level options (TCP_NODELAY, etc) in Netty's
Bootstrap like this:
this.channel = new Bootstrap().group(rpcClient.group).channel(rpcClient.channelClass)
.option(ChannelOption.TCP_NODELAY, rpcClient.isTcpNoDelay())
.option(ChannelOption.SO_KEEPALIVE, rpcClient.tcpKeepAlive)
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, rpcClient.connectTO)
At least in ServerBootstrap there is a configurable ServerSockerFactory
which can be used to configure the socket. In ClientBootstrap, I could not
find an easy way to do that.
We need this for the HBase-native-client, happening here:
https://issues.apache.org/jira/browse/HBASE-14850
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#85>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH0bJIp6u-kIfQXLqPAqIJC9tCAqyM0Pks5rcO0igaJpZM4L_4bU>
.
|
Yea pretty much. Now accepting diffs :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One can configure socket level options (TCP_NODELAY, etc) in Netty's Bootstrap like this:
At least in ServerBootstrap there is a configurable ServerSockerFactory which can be used to configure the socket. In ClientBootstrap, I could not find an easy way to do that.
We need this for the HBase-native-client, happening here: https://issues.apache.org/jira/browse/HBASE-14850
The text was updated successfully, but these errors were encountered: