dshe/RxSockets

Add connect lost retry mechanism and raise event

Closed this issue · 1 comments

Add connect lost retry mechanism and raise event
dshe commented

When the remote socket disconnects, it will notify the connected socket by sending 0 bytes. This will complete the RxClientSocket.ReceiveObservable. In case the connection gets severed without such notification, the observable will not complete. In both cases, RxClientSocket.Connected is false, and calling RxClientSocket.Send() more than once will throw a SocketException. Sensing and recovery from a severed connection may be practical at a higher level.