최고의 답변자

RXX TcpClient ConnectObservable with Retry

질문

I'm trying to utilize the Retry mechanism in rxx to retry a tcp connection. The issueI found and, looks like,has been addressed here is
that if you use a Retry with async pattern you only get one connection attempt who's failuer just gets replayed.

As a side note, if one wanted to implement some sort of behavior once the number of reconnects has been disabled they should do it in an onerror of the subscription to the deferred sequence, or is there another way to specify
it the sequence definition? Something like a Finally or RetryFinalFail?

You could add the Catch operator after Retry. The
Catch operator also listens for an OnError notification.

The Retry operator will prevent Catch from seeing an OnError
notification by using the right notification channel in OnNext. Retry will only send an OnError notification when the retry count is exhausted. Therefore,
Catch will only catch the last exception, which Retry
doesn't handle.