@ai-ecoverse/slicc-kernel 1.124.11 → 1.124.12

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.
@@ -5499,7 +5499,7 @@ var KERNEL_VERSION, OS_RELEASE;
5499
5499
  var init_version = __esm({
5500
5500
  "src/version.ts"() {
5501
5501
  "use strict";
5502
- KERNEL_VERSION = true ? "1.124.11" : "0.0.0-dev";
5502
+ KERNEL_VERSION = true ? "1.124.12" : "0.0.0-dev";
5503
5503
  OS_RELEASE = "6.0.0-slicc";
5504
5504
  }
5505
5505
  });
@@ -7405,7 +7405,7 @@ function createSyncSabTransport(sab, port3, deps = {}) {
7405
7405
  return;
7406
7406
  }
7407
7407
  const remaining = deadline - now();
7408
- if (remaining <= 0) throw syncError("ETIMEDOUT", label);
7408
+ if (remaining <= 0) throw syncError("EIO", label);
7409
7409
  wait2(header, SAB_I_PUB, published, remaining);
7410
7410
  }
7411
7411
  }
@@ -7414,7 +7414,6 @@ function createSyncSabTransport(sab, port3, deps = {}) {
7414
7414
  if (deps.memory) publishMemory(sab, deps.memory());
7415
7415
  const id = ++seq;
7416
7416
  calls += Number(!PATH_OPS.has(req.op));
7417
- const deadline = now() + timeoutMs2;
7418
7417
  let out = null;
7419
7418
  let status2 = 0;
7420
7419
  let offset = 0;
@@ -7429,7 +7428,7 @@ function createSyncSabTransport(sab, port3, deps = {}) {
7429
7428
  } catch {
7430
7429
  throw syncError("EIO", label);
7431
7430
  }
7432
- awaitReady(id, deadline, label);
7431
+ awaitReady(id, now() + timeoutMs2, label);
7433
7432
  const total = loadU53(header, SAB_I_TOTAL, SAB_I_TOTAL_HI);
7434
7433
  const chunk = Atomics.load(header, SAB_I_CHUNK);
7435
7434
  const at = loadU53(header, SAB_I_OFFSET, SAB_I_OFFSET_HI);
@@ -7463,7 +7462,8 @@ function createSyncFsSabBridge(transport, opts = {}) {
7463
7462
  let last = null;
7464
7463
  function run(req, path, transfer) {
7465
7464
  last = null;
7466
- const result = transport.call(req, timeoutMs2, `sync-sab bridge, '${path}'`, transfer);
7465
+ const silence = READ_ONLY.has(req.op) ? timeoutMs2 : Number.POSITIVE_INFINITY;
7466
+ const result = transport.call(req, silence, `sync-sab bridge, '${path}'`, transfer);
7467
7467
  if (!result.ok) throw errnoError(result.errno, path);
7468
7468
  return result;
7469
7469
  }
@@ -7625,7 +7625,7 @@ function createSyncFsSabBridge(transport, opts = {}) {
7625
7625
  statfs: (path = "/") => parseSyncFsUsage(json2({ op: "statfs", path }, path))
7626
7626
  };
7627
7627
  }
7628
- var PATH_OPS, calls, looks, SPIN_MS, SPIN_STRIDE, SPIN_STRIDES, SPIN_CORES, spinning, SPIN_CAP_MS;
7628
+ var PATH_OPS, READ_ONLY, calls, looks, SPIN_MS, SPIN_STRIDE, SPIN_STRIDES, SPIN_CORES, spinning, SPIN_CAP_MS;
7629
7629
  var init_sync_sab_bridge = __esm({
7630
7630
  "src/realm/sync-sab-bridge.ts"() {
7631
7631
  "use strict";
@@ -7634,6 +7634,19 @@ var init_sync_sab_bridge = __esm({
7634
7634
  init_sync_fs_wire();
7635
7635
  init_sync_sab_wire();
7636
7636
  PATH_OPS = new Set(SYNC_FS_OPS);
7637
+ READ_ONLY = /* @__PURE__ */ new Set([
7638
+ "read",
7639
+ "pread",
7640
+ "exists",
7641
+ "stat",
7642
+ "lstat",
7643
+ "readdir",
7644
+ "readdir-stat",
7645
+ "readlink",
7646
+ "statfs",
7647
+ "kept",
7648
+ "access"
7649
+ ]);
7637
7650
  calls = 0;
7638
7651
  looks = 0;
7639
7652
  SPIN_MS = 0.06;