You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…13318)
Motivation:
We should throw a NoRouteToHostException when a socket connection fails with EHOSTUNREACH in the same way as
ENETUNREACH.
Modifications:
Add handling for EHOSTUNREACH
Result:
Correct exception is thrown.
…13318)
Motivation:
We should throw a NoRouteToHostException when a socket connection fails with EHOSTUNREACH in the same way as
ENETUNREACH.
Modifications:
Add handling for EHOSTUNREACH
Result:
Correct exception is thrown.
Expected behavior
Connecting to an unreachable host should throw a
NoRouteToHostException
Actual behavior
Netty throws
java.net.ConnectException: finishConnect(..) failed: No route to host
Steps to reproduce
Attempt to connec to an unreachable host
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.90.Final
JVM version (e.g.
java -version
)11
OS version (e.g.
uname -a
)Linux
The code in
io.netty.channel.unix.Errors.newConnectException0()
should handleEHOSTUNREACH
as it already handlesENETUNREACH
The text was updated successfully, but these errors were encountered: