Socket
Socket
Sign inDemoInstall

cluster-isolatable

Package Overview
Dependencies
0
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cluster-isolatable

Allows to isolate workers so they only handle one request at a time. Useful for file uploads.


Version published
Maintainers
0
Install size
328 kB
Created

Readme

Source

cluster-isolatable

Plugin for cluster that allows to isolate one connection per worker.

It's not perfect because node always accepts as many connections as possible when the server's fd becomes readable, but with a high enough worker count, the chances of two connections making it into one worker are relatively small.

Usage

var isolatable = require('cluster-isolatable');
cluster(server).use(isolatable());

License

MIT

FAQs

Last updated on 19 Jul 2011

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc