RFR:8194298 Add support for per Socket configuration of TCP keepalive

vyom tewari vyom.tewari at oracle.com
Sat May 12 02:43:47 UTC 2018


thanks all for review, please find the latest 
webrev(http://cr.openjdk.java.net/~vtewari/8194298/webrev0.3/index.html). 
I address most of the  review comments.

Vyom


On Saturday 12 May 2018 12:01 AM, Chris Hegarty wrote:
> On 11 May 2018, at 01:04, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>> On 10/05/2018 16:21, vyom tewari wrote:
>>> Hi,
>>>
>>> Please find the latest webrev(http://cr.openjdk.java.net/~vtewari/8194298/webrev0.2/index.html)
>>> ...
>> It would be better if the channel implementation didn't static import ExtendedSocketOptions.getInstance as that is a very generic method method name. As I mentioned previously, you could simplify all these usages if you add the following to sun.net.ext.ExtendedSocketOption
>>     static Set<SocketOption<?>> options(int type) { return getInstance().options(type)); }
> +1
>
>> A minor comment on tests is that they can use List.of instead of Arrays.asList.
> +1
>
> Otherwise, this looks very good.
>
> -Chris.
>
> P.S. A separate issue, but when reviewing this it reminded me that we should deprecate-for-removal jdk/net/Sockets.java. It’s functionality is already supported by a standard API.
>



More information about the net-dev mailing list