@decentnetwork/lan 0.1.182 → 0.1.183

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.
Binary file
Binary file
Binary file
Binary file
@@ -466,7 +466,11 @@ export function startMultiExitRouter(opts) {
466
466
  // Mbps) and stalls/rebuffers. Keep such nodes OUT of rotation while a
467
467
  // healthy-speed exit exists; unproven exits (null speed) stay in so they
468
468
  // still get measured, and we never empty the pool.
469
- if (measuredVals.length >= 2) {
469
+ // Skip the floor when hls-accel is on: parallel-prefetch AGGREGATION wants
470
+ // every exit contributing bandwidth (even a slow 0.4 Mbps one adds to the
471
+ // sum), so benching slow exits would REDUCE aggregate throughput — the
472
+ // opposite of what a bandwidth-heavy HD stream needs.
473
+ if (!opts.hlsAccel && measuredVals.length >= 2) {
470
474
  const best = measuredVals[measuredVals.length - 1];
471
475
  const floor = best * SLOW_EXIT_FLOOR_FRACTION;
472
476
  const fast = pool.filter((e) => e.speedEwma === null || e.speedEwma >= floor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/lan",
3
- "version": "0.1.182",
3
+ "version": "0.1.183",
4
4
  "description": "Private virtual LAN for self-hosted services and AI agents, built on Elastos Carrier. NAT-traversal, name service, ACL, all over a peer-to-peer mesh — no public IP required.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",