
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@custody/plugin-clear-port-conflicts
Advanced tools
Custody plugin to clear port conflicts between processes
If you're using Supervisor for local development of microservices, the processes launched by Supervisor are probably not the servers themselves but rather build processes, which in turn launch the servers. The process tree might look something like this:
supervisord
- gulp (using gulp-nodemon)
- node
Something in this chain tends to lose the server process, so that it keeps running, but no longer under Supervisor control. When, eventually, the "supervised" process starts/restarts, the new server crashes with an EADDRINUSE error.
This custody plugin can automatically fix such port conflicts.
npm install -g @custody/plugin-command-clear-port-conflicts
Then launch custody-cli settings
and add "@custody/plugin-command-clear-port-conflicts" to your
.custodyrc
. Finally, restart custody-cli
to get it to pick up the new plugin.
This module requires that you instrument every process you wish to de-conflict with @custody/probe, please configure that before proceeding. This is because this plugin requires @custody/probe to report the EADDRINUSE error, as described here.
Once you've set up the plugin and probe(s) as described above, this plugin will operate automatically.
When the plugin detects a port conflict, it will kill the process listening to your desired port, then restart the supervised process.
We welcome bug reports and feature suggestions!
FAQs
Custody plugin to clear port conflicts between processes
The npm package @custody/plugin-clear-port-conflicts receives a total of 9 weekly downloads. As such, @custody/plugin-clear-port-conflicts popularity was classified as not popular.
We found that @custody/plugin-clear-port-conflicts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.