@olane/o-config 0.7.12-alpha.3 → 0.7.12-alpha.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAOpC,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,mBAAmB,EAAE,YAqBjC,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAOpC,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC"}
@@ -22,10 +22,13 @@ export const defaultLibp2pConfig = {
22
22
  }),
23
23
  },
24
24
  connectionManager: {
25
- maxConnections: Infinity,
26
- maxParallelDials: Infinity,
27
- maxDialQueueLength: Infinity,
28
- maxPeerAddrsToDial: Infinity,
29
- inboundConnectionThreshold: Infinity,
25
+ // UPDATED: Changed from Infinity to sensible limits to prevent resource exhaustion
26
+ // These limits help prevent CONNECTION_FAILED errors when many tools start simultaneously
27
+ // or when operating through circuit relays with their own connection limits
28
+ maxConnections: 200, // Allow up to 200 concurrent connections (was Infinity)
29
+ maxParallelDials: 10, // Limit concurrent dial attempts to prevent flooding (was Infinity)
30
+ maxDialQueueLength: 100, // Queue up to 100 pending dials (was Infinity)
31
+ maxPeerAddrsToDial: 25, // Try up to 25 different addresses per peer (was Infinity)
32
+ inboundConnectionThreshold: Infinity, // Keep unlimited inbound (typically less of an issue)
30
33
  },
31
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-config",
3
- "version": "0.7.12-alpha.3",
3
+ "version": "0.7.12-alpha.5",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -78,5 +78,5 @@
78
78
  "libp2p": "^3.0.6",
79
79
  "uint8arraylist": "^2.4.8"
80
80
  },
81
- "gitHead": "5c05e5f248001abc38f34c77bd97c9a325231503"
81
+ "gitHead": "f0b799131f025624da04374b76e9aa373402f787"
82
82
  }