Skip to content

floatdrop/infinity-agent

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Creates HTTP/HTTPS Agent with Infinity maxSockets

Resources

License

Stars

Watchers

Forks

Packages

No packages published