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
Discovered in the TcpSuite server-client ping-pong test, but probably generally applicable.
connect(foo) needs to give some indication of error, perhaps Throwing
when the connection fails.
Later:
I see that /EpollAsyncSocketChannel.scala has two places
where it throws ConnectException("Connection refused").
If I can create time, I will have to check why those did not
trigger.
The problem may be that it does so currently and that something in the
peer-to-peer test is not letting that message propagate to the user.
The text was updated successfully, but these errors were encountered:
LeeTibbert
changed the title
peer-to-peer test, connect(), and lack of error messages
ping-pong test, connect(), and lack of error messages
Sep 4, 2022
Later: Debugging writes reveal that a proper & expected ConnectException is being thrown
about line 236 in EpollAsyncSocketChannel.scala and never showing up to interrupt the
test or even being reported.
Yes it is. Thank you for that fix and this bookkeeping
For the future:
Resolution is that the ConectException was being thrown but it took 2 minutes or so
for the TCP SYN connection handshake to timeout and then throw. That Exception
was then being ignored by the test, making it look like the ConnectException never
happened.
Discovered in the TcpSuite
server-client ping-pong
test, but probably generally applicable.connect(foo)
needs to give some indication of error, perhapsThrow
ingwhen the connection fails.
Later:
I see that
/EpollAsyncSocketChannel.scala
has two placeswhere it throws
ConnectException("Connection refused")
.If I can create time, I will have to check why those did not
trigger.
The problem may be that it does so currently and that something in the
peer-to-peer test is not letting that message propagate to the user.
The text was updated successfully, but these errors were encountered: