src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java
changeset 53445 c96f9aa1f3d8
parent 49493 814bd31f8da0
child 54246 f04e3492fd88
child 57274 07b6be5d9150
--- a/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java	Wed Jan 23 13:37:12 2019 +0100
+++ b/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java	Wed Jan 23 13:16:16 2019 +0000
@@ -478,7 +478,7 @@
                             }
                             if (!isBlocking()) {
                                 for (;;) {
-                                    n = checkConnect(fd, false, readyToConnect);
+                                    n = Net.pollConnect(fd, 0);
                                     if (  (n == IOStatus.INTERRUPTED)
                                           && isOpen())
                                         continue;
@@ -486,7 +486,7 @@
                                 }
                             } else {
                                 for (;;) {
-                                    n = checkConnect(fd, true, readyToConnect);
+                                    n = Net.pollConnect(fd, -1);
                                     if (n == 0) {
                                         // Loop in case of
                                         // spurious notifications
@@ -1104,9 +1104,6 @@
             InetAddress addr, int port, int assocId, int streamNumber,
             boolean unordered, int ppid) throws IOException;
 
-    private static native int checkConnect(FileDescriptor fd, boolean block,
-            boolean ready) throws IOException;
-
     static {
         IOUtil.load();   /* loads nio & net native libraries */
         java.security.AccessController.doPrivileged(