Serdar Gökay created CAMEL-26113:
------------------------------------
Summary: camel-milo - the client does not rebuild its connection
after the server changes its endpoint or certificate while it is unreachable
Key: CAMEL-26113
URL: https://issues.apache.org/jira/browse/CAMEL-26113
Project: Camel
Issue Type: Improvement
Components: camel-milo
Affects Versions: 4.24.0
Reporter: Serdar Gökay
Follow-up of CAMEL-25912, documented there in the component page and in the
4.24 upgrade guide.
The client recovers a lost session itself, with the endpoint and the server
certificate it found when it connected. A server that renews its certificate or
changes its endpoints while it cannot be reached is therefore not reached again
by that recovery; the client reaches it only when Camel rebuilds the
connection, for example when the Camel context restarts. Consumer-only
connections behave this way since CAMEL-25691 and CAMEL-25692 (4.24.0). Since
CAMEL-25912 a failed producer request no longer rebuilds the connection either,
so this now applies to every connection.
A possible mechanism: when the reconnect of the client keeps failing, or fails
with a certificate or endpoint error, run endpoint discovery again and rebuild
the connection through the existing reconnect path of the manager. To decide:
when the rebuild happens, and how it is reported.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)