RFR: JDK-8310734: Add cause to Connection reset - SocketException in NioSocketImpl implRead
Alan Bateman
alanb at openjdk.org
Thu Jul 20 06:47:40 UTC 2023
On Fri, 30 Jun 2023 14:13:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> 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.
Can this PR be closed? In the JBS issue I think we agreed that this shouldn't be used as the cause here.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14734#issuecomment-1643361365
More information about the nio-dev
mailing list