Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: handle socket name collisions (#125)
This change adds a fix to address socket name collisions, as well as the following changes: * Sockets are now created in the system temp directory. * Added daemon bootstrap logging (via a new --log-file option only exposed in the _serve command) so that if the daemon bootstrap fails, we are able to look at the logs and determine what went wrong. Daemon bootstrap logging stops logging to the file after bootstrap is complete. * Improved the --connection-file CLI help text * Removed the worker path component from configuration file paths * Add support for configuring connection data via environment variables. Currently, there is only one env var needed, OPENJD_ADAPTOR_SOCKET. * The <adaptor> daemon start command has been updated to emit an openjd_env: OPENJD_ADAPTOR_SOCKET=<path-to-socket> line to stdout so that, when running in an OpenJD environment, the option is automatically set and subsequent commands within this OpenJD environment no longer need to pass in a --connection-file argument. * The --connection-file argument is no longer necessary if OPENJD_ADAPTOR_SOCKET is provided * The <adaptor> daemon start command will still generate a connection file at a temporary directory when it is not provided, then delete it after daemon bootstrap is complete. Signed-off-by: Jericho Tolentino <68654047+jericht@users.noreply.github.com>
- Loading branch information