-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for reconnecting to different host with TcpClient #302
Comments
Each retry will trigger a new |
I didn't reply back into the SPR ticket. Honestly, I don't quite get what the older reactor/reactor#412 issue is about. What I did now is to use my own implementation of the From what I could quickly see |
Ah, I see now. reactor/reactor#412 was about an issue with the Reconnect strategy, passed into the |
Resolving this since it sounds like it should just work in the latest Reactor Netty. |
@rstoyanchev What is the proper way to configure TcpClient in order to reconnect to the same host in case the server has disconnected? I didn't find methods like |
@georgeyanev I was struggling with reconnect too. Finally I made it work using observe() method, see following gist for example: https://gist.github.com/alexe13/c4afef6be7309447b690cfcd2cc60695 |
@alexe13 That is interesting, I will try this. After all if there is no response here we have to manage it ourselves. |
@georgeyanev Something similar to the snippet above (provided by @alexe13) can be achieve with See the test cases above. |
Based on an older request (originally reactor/reactor#412), we still have an outstanding request to be able to reconnect to a different host. While the
retry
operator could be used with the current API, I'm not sure how to combine that with reconnecting to a different host.For more on the underlying motivation see https://jira.spring.io/browse/SPR-12452.
The text was updated successfully, but these errors were encountered: