RFR: JDK-8310734: Add cause to Connection reset - SocketException in NioSocketImpl implRead

Matthias Baesken mbaesken at openjdk.org
Fri Jun 30 14:19:54 UTC 2023


In NioSocketImpl implRead we potentially throw a SocketException("Connection reset"). We can improve this by adding the cause.
This would bring this exception also closer to the case of IOException where we use throw asSocketException(ioe);  and  preserve the stack and message of the original exception.

-------------

Commit messages:
 - JDK-8310734

Changes: https://git.openjdk.org/jdk/pull/14734/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14734&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8310734
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/14734.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14734/head:pull/14734

PR: https://git.openjdk.org/jdk/pull/14734


More information about the nio-dev mailing list