Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199329

Remove code that attempts to read bytes after connection reset reported

    XMLWordPrintable

Details

    • b05
    • Not verified

    Description

      java.net.Socket has legacy support that attempts to read bytes in the socket buffer after a connection reset has been detected. This doesn't make any sense on most platforms and is too fragile/unpredictable on the few where this is possible. This code should be removed. The implementation also has code to ensure a consistent exception is thrown for cases where code attempts to read from a socket after "connection reset" has been reported. It's possible that code is relying on this behavior so that needs to be retained.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: