@ai-ecoverse/slicc-kernel 1.149.0 → 1.149.1

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.
@@ -6837,6 +6837,7 @@ function serveTransport(peer, transport, { closeWaitMs = CLOSE_WAIT_MS2 } = {})
6837
6837
  const flow = {
6838
6838
  inflight: 0,
6839
6839
  closing: false,
6840
+ dropped: false,
6840
6841
  deadline: () => AbortSignal.timeout(closeWaitMs).addEventListener("abort", late, { once: true })
6841
6842
  };
6842
6843
  credit.set(nid, flow);
@@ -6848,7 +6849,7 @@ function serveTransport(peer, transport, { closeWaitMs = CLOSE_WAIT_MS2 } = {})
6848
6849
  const next3 = await Promise.race([messages.next(), unanswered]);
6849
6850
  if (next3 === "late" || next3.done) break;
6850
6851
  const data = next3.value;
6851
- if (flow.closing) continue;
6852
+ if (flow.dropped) continue;
6852
6853
  if (payloadSize(data) > MESSAGE_LIMIT) {
6853
6854
  oversize = true;
6854
6855
  break;
@@ -6902,6 +6903,8 @@ function serveTransport(peer, transport, { closeWaitMs = CLOSE_WAIT_MS2 } = {})
6902
6903
  };
6903
6904
  const drop = (nid) => {
6904
6905
  sockets.get(nid)?.close(1e3, "cancelled");
6906
+ const flow = credit.get(nid);
6907
+ if (flow) flow.dropped = true;
6905
6908
  refill(nid, 0, true);
6906
6909
  const entry = open2.get(nid);
6907
6910
  open2.delete(nid);
@@ -7908,7 +7911,7 @@ function satisfies(version, range2) {
7908
7911
  }
7909
7912
 
7910
7913
  // src/version.ts
7911
- var KERNEL_VERSION = true ? "1.149.0" : "0.0.0-dev";
7914
+ var KERNEL_VERSION = true ? "1.149.1" : "0.0.0-dev";
7912
7915
  var OS_RELEASE = "6.0.0-slicc";
7913
7916
  function procVersion() {
7914
7917
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC