New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

netpool

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netpool

a tcp connection pool

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

This module is a tcp pool for nodejs

Install

Just move the lib directory or the pool.js in to your node_modules

Simple Usage:

var config = {port : 22222, host : '127.0.0.1', minsize : 1, maxsize : 2, callback : main};
var pool = poolmodule.pool(config);
pool.get_connection(function(connect){
     var carry = carrier.carry(connect);
     carry.on('line', function doline(line){
       pool.release(carry.reader);
     });
     connect.write("aaaa\n");
});

See the bench.js in test directory.

FAQs

Package last updated on 16 Aug 2011

Did you know?

Socket

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