Skip to content

When calling Component#updateHosts, the applications are stopped and restarted #1269

Open

Description

@thboileau

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 of HostRoute 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions