Open
Description
When one wants to dynamically update the virtual hosts declared on a component, the method component#updateHosts
is called.
Some times after that, it appears that the applications are stopped (then re-started when a request targets it) which can cause troubles.
Here is the description of what happens:
- when calling
component#updateHosts
a new set ofHostRoute
is created. Such object is the glue between a virtual host and an application - when such object is garbage collected, the method finalize is called, which by default stops the HostRoute object, which at the end stops the application also.