RFR:8194298 Add support for per Socket configuration of TCP keepalive
Bernd Eckenfels
ecki at zusammenkunft.net
Fri Apr 13 20:10:53 UTC 2018
Hello,
Glad to see progress on this, much needed.
I wonder if there is a better way for safe and dynamic string concatenation in the JDK, this errmsg[56] looks scary.
Did you tried to support it on Windows, even if it does not support all 3 parameters it might be important to be available (I think Oracle Database supports it for DCD on Windows, too)
Gruss
Bernd
Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: net-dev <net-dev-bounces at openjdk.java.net> on behalf of vyom tewari <vyom.tewari at oracle.com>
Sent: Friday, April 13, 2018 11:50:39 AM
To: OpenJDK Network Dev list
Subject: RFR:8194298 Add support for per Socket configuration of TCP keepalive
Hi All,
Please review the below code.
BugId : https://bugs.openjdk.java.net/browse/JDK-8194298
webrev : http://cr.openjdk.java.net/~vtewari/8194298/webrev0.0/index.html
Currently Java supports SO_KEEPALIVE, whose default value is 7200
seconds which is too long for most of the applications. This code change
will allow us to set the keepalive
parameters(TCP_KEEPIDLE,TCP_KEEPCNT,TCP_KEEPINTVL) which will configure
the idle time on per socket basis.
I did code changes for Linux & Mac only, support for other platforms can
be added in future if needed.
Thanks,
Vyom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20180413/3c26d5cb/attachment.html>
More information about the net-dev
mailing list