![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@meteorjs/ddp-graceful-shutdown
Advanced tools
Close DDP connections gradually on server shutdown
This npm package is designed for use with Meteor apps running on platforms such as Galaxy which send SIGTERM signals and wait a grace period before killing processes.
To use on Galaxy:
import {DDPGracefulShutdown} from '@meteorjs/ddp-graceful-shutdown';
import {Meteor} from 'meteor/meteor';
new DDPGracefulShutdown({
gracePeriodMillis: 1000 * process.env.METEOR_SIGTERM_GRACE_PERIOD_SECONDS,
server: Meteor.server,
}).installSIGTERMHandler();
This registers a SIGTERM handler which will call
ddpGracefulShutdown.closeConnections({log: true})
. To trigger on a different
signal, disable logging, or only trigger after some other clean up, just call
that method yourself from an appropriate handler.
You should call this from top level code as soon as possible; this means that it
will run before the Meteor webapp
package starts listening. If it is created
after connections already exist, they will not be tracked.
This should work on all recent Meteor releases --- the onConnection
API it
relies on was introduced in 0.7.0, and it is transpiled to ES5 on npm.
0.9.2
FAQs
Close DDP connections gradually on server shutdown
The npm package @meteorjs/ddp-graceful-shutdown receives a total of 2,876 weekly downloads. As such, @meteorjs/ddp-graceful-shutdown popularity was classified as popular.
We found that @meteorjs/ddp-graceful-shutdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.