Re-examine use of InterruptedIOException in sun.security.ssl code

XMLWordPrintable

      InterruptedIOException (IIOE) dates from the legacy interruptible I/O in early JDK releases. Legacy interruptible I/O was Solaris only and is long removed. IIOE has several issues and its usages in the JDK need to be re-visited before the exception is deprecated.

      There are a few usages of IIOE in the TLS code that need to be examined.

      In SSLTransport.decode and SSLSocketInputStream.decode, it looks like this code should be catching SocketTimeoutException rather than IIOE. SocketTimeoutException (extends IIOE) was introduced in JDK 1.4 and it may be that this SSL code pre-dates this exception.

      SSLSocketImpl.startHandshake catches IIOE, not immediately clear why. Does this go back to interruptible I/O on Solaris? Does it pre-date SocketTimeoutException?

            Assignee:
            Unassigned
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: