@autofleet/network 1.2.9-alpha-8 → 1.2.9-alpha-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -44,8 +44,12 @@ module.exports = class Network {
44
44
  constructor(settings = {}) {
45
45
  this.settings = merge(defaultSettings, settings);
46
46
  if (this.settings.keepAlive) {
47
- const keepaliveAgent = new Agent();
48
- const keepaliveHttpsAgent = new HttpsAgent();
47
+ const keepaliveAgent = new Agent({
48
+ maxSockets: 1000
49
+ });
50
+ const keepaliveHttpsAgent = new HttpsAgent({
51
+ maxSockets: 1000
52
+ });
49
53
  this.settings.httpAgent = keepaliveAgent;
50
54
  this.settings.httpsAgent = keepaliveHttpsAgent;
51
55
  delete this.settings.keepAlive;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/network",
3
- "version": "1.2.9-alpha-8",
3
+ "version": "1.2.9-alpha-9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {