Kittyfisto / SharpRemote

A .NET remoting library
MIT License
12 stars 5 forks source link

Improve connection handshake when EndPoint is already in use #49

Closed Kittyfisto closed 6 years ago

Kittyfisto commented 6 years ago

Currently when a server Endpoint is in use and another EndPoint establishes a connection, then the error being received is not really helpful: SharpRemote.Exceptions.HandshakeException: Some Endpoint Name: EndPoint '' did not receive 'auth challenge' message from remote endpoint 'X.Y.Z.W:40001' in time: 9,9979998s (error: TimedOut)

This should be improved so that

Kittyfisto commented 6 years ago

From now on, a RemoteEndpointAlreadyConnectedException is thrown whenever a connection to another already connected endpoint is established. Will be available with the next patch.