rsocket-branch: test options that neither Socket nor ServerSocket support rsocket-branch
authorbpb
Wed, 06 Feb 2019 11:54:19 -0800
branchrsocket-branch
changeset 57154 4fdc05fd6996
parent 57153 95c486f5c444
child 57156 81e4a12fd1a4
rsocket-branch: test options that neither Socket nor ServerSocket support
test/jdk/jdk/net/RdmaSockets/rsocket/SocketOption/UnsupportedOptionsTest.java
--- a/test/jdk/jdk/net/RdmaSockets/rsocket/SocketOption/UnsupportedOptionsTest.java	Wed Feb 06 09:20:58 2019 -0800
+++ b/test/jdk/jdk/net/RdmaSockets/rsocket/SocketOption/UnsupportedOptionsTest.java	Wed Feb 06 11:54:19 2019 -0800
@@ -49,10 +49,12 @@
     private static final List<SocketOption<?>> socketOptions = new ArrayList<>();
 
     static {
+        socketOptions.add(StandardSocketOptions.SO_KEEPALIVE); // Unsupported
+        socketOptions.add(StandardSocketOptions.SO_LINGER);    // Unsupported
         socketOptions.add(StandardSocketOptions.SO_RCVBUF);
         socketOptions.add(StandardSocketOptions.SO_REUSEADDR);
-        socketOptions.add(StandardSocketOptions.SO_SNDBUF);
-        socketOptions.add(StandardSocketOptions.TCP_NODELAY);
+        socketOptions.add(StandardSocketOptions.SO_SNDBUF);    // Socket only
+        socketOptions.add(StandardSocketOptions.TCP_NODELAY);  // Socket only
         socketOptions.add(RdmaSocketOptions.RDMA_SQSIZE);
         socketOptions.add(RdmaSocketOptions.RDMA_RQSIZE);
         socketOptions.add(RdmaSocketOptions.RDMA_INLINE);