jdk/src/java.base/unix/native/libnet/PlainSocketImpl.c
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 30963 88469d06e03f
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
  1051         JNU_ThrowByName(env, "java/net/SocketException", "Socket closed");
  1051         JNU_ThrowByName(env, "java/net/SocketException", "Socket closed");
  1052         return;
  1052         return;
  1053     } else {
  1053     } else {
  1054         fd = (*env)->GetIntField(env, fdObj, IO_fd_fdID);
  1054         fd = (*env)->GetIntField(env, fdObj, IO_fd_fdID);
  1055         /* Bug 4086704 - If the Socket associated with this file descriptor
  1055         /* Bug 4086704 - If the Socket associated with this file descriptor
  1056          * was closed (sysCloseFD), the the file descriptor is set to -1.
  1056          * was closed (sysCloseFD), the file descriptor is set to -1.
  1057          */
  1057          */
  1058         if (fd == -1) {
  1058         if (fd == -1) {
  1059             JNU_ThrowByName(env, "java/net/SocketException", "Socket closed");
  1059             JNU_ThrowByName(env, "java/net/SocketException", "Socket closed");
  1060             return;
  1060             return;
  1061         }
  1061         }