jdk/src/solaris/native/java/net/PlainSocketImpl.c
changeset 22597 7515a991bb37
parent 14342 8435a30053c1
child 22646 5fa3669fd35d
equal deleted inserted replaced
22596:62542b8be764 22597:7515a991bb37
   961             optlen = sizeof(optval.i);
   961             optlen = sizeof(optval.i);
   962 
   962 
   963     }
   963     }
   964 
   964 
   965     if (NET_SetSockOpt(fd, level, optname, (const void *)&optval, optlen) < 0) {
   965     if (NET_SetSockOpt(fd, level, optname, (const void *)&optval, optlen) < 0) {
   966 #ifdef __solaris__
   966 #if defined(__solaris__) || defined(_AIX)
   967         if (errno == EINVAL) {
   967         if (errno == EINVAL) {
   968             // On Solaris setsockopt will set errno to EINVAL if the socket
   968             // On Solaris setsockopt will set errno to EINVAL if the socket
   969             // is closed. The default error message is then confusing
   969             // is closed. The default error message is then confusing
   970             char fullMsg[128];
   970             char fullMsg[128];
   971             jio_snprintf(fullMsg, sizeof(fullMsg), "Invalid option or socket reset by remote peer");
   971             jio_snprintf(fullMsg, sizeof(fullMsg), "Invalid option or socket reset by remote peer");