infinity-agent
Creates HTTP/HTTPS Agent with Infinity maxSockets
Last updated 10 years ago by floatdrop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install infinity-agent 
SYNC missed versions from official npm registry.

infinity-agent Build Status

Node-core HTTP Agent for userland.

Usage

var infinityAgent = require('infinity-agent');

var http = require('http');
var https = require('https');

http.get('http://google.com', {agent: infinityAgent.http.globalAgent});
https.get('http://google.com', {agent: infinityAgent.https.globalAgent});

This package is a mirror of the Agent class in Node-core.

There is one minor change in addRequest method: basically we disable keepAlive if agent is not configured for it, and maxSockets is set to Infinity.

License

MIT © Vsevolod Strukchinsky

Current Tags

  • 2.0.3                                ...           latest (10 years ago)

9 Versions

  • 2.0.3                                ...           10 years ago
  • 2.0.2                                ...           10 years ago
  • 2.0.1                                ...           10 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE