Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Isolate workers so they only handle one request at a time. Useful for file uploads.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Readme.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Readme.md

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

Something went wrong with that request. Please try again.