Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Use it like this:
- */
- var http = require('http');
- var keepAliveAgent = require('./agent.js');
- var agent = new keepAliveAgent({ maxSockets: 100 }); // Optionally define more parallel sockets
- var options = {
- agent: agent,
- hostname: 'example.com',
- path: '/path'
- };
- http.get(options);
Add Comment
Please, Sign In to add comment