CashFusion-shaped control-channel framing (FRAME_MAGIC + length +
payload) with FusionConnection, connect, and listen (plain TCP or
optional native TLS). Unit tests cover send/recv, close unblock, dual-client
TCP, and a one-shot openssl TLS round-trip. No protobuf RPCs, covert/Tor,
Chronik, or signing yet — those follow.
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC305ba8ba941d: [alp-fusion] Add framed TCP/TLS control connection
- cd apps/alp-fusion && pnpm test
- Confirm TLS test creates a temp self-signed cert via openssl and exchanges one framed payload
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Keep calm and carry on coding, I'll handle the bugs.
────────────────────────────────────────────────────────────────────────
major [Stability & Availability]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:294apps/alp-fusion/src/protocol/connection.ts:294-307]8;;
close() can hang, and post-listen server errors are discarded.
Two separate problems in this block:
1. server.close() stops new accepts. The callback runs only after every
open connection ends. The coordinator holds long-lived participant
sockets, so an operator shutdown blocks forever. Track accepted sockets
and destroy them, or call server.closeAllConnections().
2. server.on('error', reject) stays attached after the promise resolves.
Every runtime listener error after that point calls a settled reject and
disappears. The caller gets no signal.
🛠️ Proposed fix
+ const sockets = new Set<FusionConnection>();
+ const track = (conn: FusionConnection) => {
+ sockets.add(conn);
+ conn.socket.once('close', () => sockets.delete(conn));
+ onConnection(conn);
+ };
...
- server = createTlsServer(tlsOpts, socket => {
- onConnection(new FusionConnection(socket));
- });
+ server = createTlsServer(tlsOpts, socket => {
+ track(new FusionConnection(socket));
+ });
} else {
- server = createServer(socket => {
- onConnection(new FusionConnection(socket));
- });
+ server = createServer(socket => {
+ track(new FusionConnection(socket));
+ });
}
- server.on('error', reject);
+ const onListenError = (err: Error) => reject(err);
+ server.once('error', onListenError);
server.listen(port, host, () => {
+ server.off('error', onListenError);
+ // Keep a handler so a late listener error cannot crash the process.
+ server.on('error', () => {
+ /* surfaced by callers of close() */
+ });
const addr = server.address();
const bound =
typeof addr === 'object' && addr !== null ? addr.port : port;
resolve({
server,
port: bound,
close: () =>
new Promise((res, rej) => {
server.close(err => (err ? rej(err) : res()));
+ for (const conn of sockets) {
+ conn.close();
+ }
}),
});
});
Prefer an explicit onError callback in ListenOptions over the silent
handler if callers must react to listener failures.────────────────────────────────────────────────────────────────────────
major [Functional Correctness]
→ ]8;;vscode://file//work/apps/alp-fusion/test/protocol/connection.test.ts:64apps/alp-fusion/test/protocol/connection.test.ts:64-105]8;;
Add coverage for split frames and back-to-back frames.
The current tests always deliver one whole frame in one chunk, and always
deliver it while recvMessage is already awaiting. Two realistic TCP
cases are untested:
1. One frame split across two data chunks.
2. Two frames in one chunk, read by two sequential recvMessage calls.
Case 2 fails with the current readChunk implementation. See the related
comment on apps/alp-fusion/src/protocol/connection.ts lines 138-180.
🧪 Proposed additional tests
+ it('recvMessage reassembles a frame split across chunks', async () => {
+ const mock = new MockSocket();
+ const conn = new FusionConnection(mock as unknown as Socket);
+ const body = Buffer.from('split payload');
+ const len = Buffer.alloc(4);
+ len.writeUInt32BE(body.length);
+ const frame = Buffer.concat([Buffer.from(FRAME_MAGIC), len, body]);
+
+ const recvPromise = conn.recvMessage(5000);
+ mock.push(frame.subarray(0, 10));
+ mock.push(frame.subarray(10));
+ expect((await recvPromise).equals(body)).to.equal(true);
+ });
+
+ it('recvMessage returns two frames delivered in one chunk', async () => {
+ const mock = new MockSocket();
+ const conn = new FusionConnection(mock as unknown as Socket);
+ const mkFrame = (text: string) => {
+ const body = Buffer.from(text);
+ const len = Buffer.alloc(4);
+ len.writeUInt32BE(body.length);
+ return Buffer.concat([Buffer.from(FRAME_MAGIC), len, body]);
+ };
+
+ const recvPromise = conn.recvMessage(5000);
+ mock.push(Buffer.concat([mkFrame('one'), mkFrame('two')]));
+ expect((await recvPromise).toString()).to.equal('one');
+ expect((await conn.recvMessage(5000)).toString()).to.equal('two');
+ });────────────────────────────────────────────────────────────────────────
critical [Stability & Availability] → ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:36apps/alp-fusion/src/protocol/connection.ts:36]8;; Buffer socket data between recvMessage calls readChunk removes the only data listener while the socket remains in flowing mode. Bytes received before the next listener is attached are discarded. This affects frames sent immediately after listen accepts a connection and pipelined frames received between recvMessage iterations. Install one persistent data listener, append chunks to recvBuf, and let recvMessage await buffered data, connection closure, or timeout. Remove readChunk after this change.
────────────────────────────────────────
Review complete
3 findings ✔
Critical 1
Major 2
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Address CodeRabbit: persistent recv buffer (no byte loss between recvMessage), destroy tracked sockets on listen close, once-only listen error reject; add split/pipelined/inter-recv and non-hanging close tests.
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) My GPU is bigger than your GPU.
────────────────────────────────────────────────────────────────────────
major [Stability & Availability]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:108apps/alp-fusion/src/protocol/connection.ts:108-125]8;;
Tear down the connection on a framing violation.
tryParseFrame throws Bad frame magic or Message too large, but
recvBuf keeps the offending bytes and the socket stays open. The stream
is then permanently desynchronized: every later recvMessage call
rethrows the same error, and a peer can hold the connection open after
sending garbage. Close the connection when the frame header is invalid.
🛡️ Proposed fix
async recvMessage(timeoutMs = this.defaultTimeoutMs): Promise<Buffer> {
const deadline = Date.now() + timeoutMs;
while (true) {
- const parsed = tryParseFrame(this.recvBuf);
+ let parsed;
+ try {
+ parsed = tryParseFrame(this.recvBuf);
+ } catch (err) {
+ // Protocol violation: the stream cannot be resynchronized.
+ this.close();
+ throw err;
+ }
if (parsed) {
Also applies to: 166-184────────────────────────────────────────────────────────────────────────
major [Stability & Availability]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:54apps/alp-fusion/src/protocol/connection.ts:54-57]8;;
Bound recvBuf and avoid repeated full-buffer copies.
The data listener appends every chunk with no cap. A peer can pipeline
frames faster than the consumer calls recvMessage, so recvBuf grows
without bound; MAX_FRAME_PAYLOAD_BYTES limits one frame only, not the
accumulated buffer. Buffer.concat on each chunk also makes ingest O(n²)
in the buffered size. Apply socket backpressure above a high-water mark,
and resume in recvMessage.
🛡️ Sketch: pause above a high-water mark
+const RECV_HIGH_WATER = FRAME_HEADER_LEN + 2 * MAX_FRAME_PAYLOAD_BYTES;
+
socket.on('data', (chunk: Buffer) => {
this.recvBuf = Buffer.concat([this.recvBuf, chunk]);
+ if (this.recvBuf.length >= RECV_HIGH_WATER) {
+ this.socket.pause?.();
+ }
this.notifyWaiters();
});
Then resume after a frame is consumed in recvMessage:
if (parsed) {
this.recvBuf = Buffer.from(parsed.rest);
+ if (this.recvBuf.length < RECV_HIGH_WATER) {
+ this.socket.resume?.();
+ }
return parsed.msg;
}
A chunk list plus a single concat on parse removes the O(n²) behavior.────────────────────────────────────────────────────────────────────────
minor [Data Integrity & Integration]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:80apps/alp-fusion/src/protocol/connection.ts:80-106]8;;
Validate the outbound payload size, and remove the error-listener leak.
Two points:
1. sendMessage does not check msg.length against
MAX_FRAME_PAYLOAD_BYTES. The receive path rejects such a frame, so an
oversize send fails only at the peer. Fail locally instead.
2. If the write callback never runs, for example after the socket is
destroyed mid-write, onError stays registered on the socket. Long-lived
coordinator sockets then accumulate listeners.
🛠️ Proposed fix
async sendMessage(msg: Uint8Array): Promise<void> {
if (this.destroyed) {
throw new Error('Connection closed');
}
+ if (msg.length > MAX_FRAME_PAYLOAD_BYTES) {
+ throw new Error('Message too large');
+ }
const len = Buffer.alloc(4);
len.writeUInt32BE(msg.length);
@@
await new Promise<void>((resolve, reject) => {
- const onError = (err: Error) => {
- this.socket.off('error', onError);
- reject(err);
- };
- this.socket.once('error', onError);
- this.socket.write(frame, err => {
- this.socket.off('error', onError);
+ const onError = (err: Error) => {
+ cleanup();
+ reject(err);
+ };
+ const onClose = () => {
+ cleanup();
+ reject(new Error('Connection closed'));
+ };
+ const cleanup = () => {
+ this.socket.off('error', onError);
+ this.socket.off('close', onClose);
+ };
+ this.socket.once('error', onError);
+ this.socket.once('close', onClose);
+ this.socket.write(frame, err => {
+ cleanup();
if (err) {
reject(err);
} else {
resolve();
}
});
});
}────────────────────────────────────────
Review complete
3 findings ✔
Major 2
Minor 1
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Address CodeRabbit: close on framing violations, reject oversize send locally, cap recvBuf with MAX_RECV_BUFFER_BYTES (close on flood; no pause/resume redesign).
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Ah yes, the classic pattern: 'parse first, ask questions never'.
────────────────────────────────────────────────────────────────────────
minor [Stability & Availability] → ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:287apps/alp-fusion/src/protocol/connection.ts:287-349]8;; Confirm that close() waits for client sockets. close() destroys tracked server-side connections and then calls server.close. sockets only holds connections created by track, so any socket that connected but did not complete the TLS handshake is not tracked. For a TLS server, createTlsServer's connection callback runs after secureConnect, so a half-handshaked peer keeps the server handle open and close() never resolves. Add a hard timeout or track raw sockets through the connection event.
────────────────────────────────────────
Review complete
1 finding ✔
Minor 1
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Address CodeRabbit: track raw TCP sockets on listen (incl. pre-TLS handshake) and destroy them in close() so stalled TLS handshakes cannot hang shutdown.
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Don't use manual procedures. A shell script or batch file will execute the same instructions, in the same order, time after time.
────────────────────────────────────────────────────────────────────────
minor [Functional Correctness]
→ ]8;;vscode://file//work/apps/alp-fusion/test/protocol/connection.test.ts:195apps/alp-fusion/test/protocol/connection.test.ts:195-224]8;;
The test assumes the server accepts connections in dial order.
The test maps serverConns[0] to c1 and serverConns[1] to c2. The
order in which the listener fires onConnection is not guaranteed, so
this assertion can flake. Assert on the multiset of received payloads
instead.
💚 Proposed fix
- expect(m0.toString()).to.equal('a');
- expect(m1.toString()).to.equal('b');
+ expect([m0.toString(), m1.toString()].sort()).to.deep.equal([
+ 'a',
+ 'b',
+ ]);────────────────────────────────────────────────────────────────────────
minor [Security & Privacy]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:232apps/alp-fusion/src/protocol/connection.ts:232-238]8;;
loadPem treats any non-PEM string as a path.
If a caller passes a corrupted PEM string without the -----BEGIN marker,
readFileSync throws ENOENT with the secret material in the error
message and stack. Validate the input shape first, and reject values that
contain newlines instead of passing them to readFileSync.
🛡️ Proposed fix
export function loadPem(pathOrPem: string): Buffer {
const trimmed = pathOrPem.trim();
if (trimmed.includes('-----BEGIN')) {
return Buffer.from(trimmed, 'utf8');
}
+ if (trimmed.includes('\n')) {
+ throw new Error('loadPem: value is neither a PEM block nor a path');
+ }
return readFileSync(trimmed);
}────────────────────────────────────────
Review complete
2 findings ✔
Minor 2
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Address CodeRabbit: assert dual-client payloads as a multiset (accept order not guaranteed); reject multiline non-PEM strings in loadPem so secrets are not echoed via ENOENT.
Failed tests logs:
====== loadPem: accepts inline PEM blocks.loadPem accepts inline PEM blocks ======
AssertionError: expected '-----BEGIN CERTIFICATE-----\nABC\n---…' to equal '-----BEGIN CERTIFICATE-----\nABC\n---…'
at Context.<anonymous> (test/protocol/connection.test.ts:320:50)
at process.processImmediate (node:internal/timers:485:21)
+ expected - actual
-----BEGIN CERTIFICATE-----
ABC
------END CERTIFICATE-----
+-----END CERTIFICATE-----Each failure log is accessible here:
loadPem: accepts inline PEM blocks.loadPem accepts inline PEM blocks
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Transformers: Not just a movie franchise.
────────────────────────────────────────────────────────────────────────
major [Stability & Availability]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:299apps/alp-fusion/src/protocol/connection.ts:299-336]8;;
Add a handshake/idle timeout for accepted raw sockets.
listen accepts raw sockets and never applies a timeout to them. For the
TLS path, a peer that connects and never completes the handshake holds a
socket and a file descriptor until the process stops. FusionConnection
is not constructed for those sockets, so the setTimeout(0) in the
constructor is not the cause; the socket simply has no deadline. The
existing stalled-handshake test confirms this state is reachable.
Apply a bounded deadline on accept, and clear it when the connection
becomes framed.
🛡️ Proposed fix to bound pre-handshake sockets
const track = (conn: FusionConnection) => {
framed.add(conn);
conn.socket.once('close', () => framed.delete(conn));
onConnection(conn);
};
@@
server.on('connection', (sock: Socket) => {
rawSockets.add(sock);
sock.once('close', () => rawSockets.delete(sock));
+ // Bound pre-handshake / pre-framing sockets. FusionConnection
+ // resets this to 0 once the connection is established.
+ sock.setTimeout(HANDSHAKE_TIMEOUT_MS, () => sock.destroy());
});
Define HANDSHAKE_TIMEOUT_MS (for example 30_000) in constants.ts next
to the other connection defaults.────────────────────────────────────────
Review complete
1 finding ✔
Major 1
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) 💣 Deploying bug fixes in 3... 2... 1...
────────────────────────────────────────────────────────────────────────
minor [Security & Privacy]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:232apps/alp-fusion/src/protocol/connection.ts:232-243]8;;
The loadPem guard does not cover single-line secret material.
The comment states that corrupted PEM must not reach readFileSync
because ENOENT echoes the secret. The guard only rejects values that
contain a newline. A single-line base64 key blob still reaches
readFileSync, and the ENOENT message then contains that blob.
Add a length bound, or reject values that do not look like a path.
🛡️ Proposed fix
// Corrupted PEM (no BEGIN marker) must not be passed to readFileSync —
// ENOENT would echo the secret material in the error path.
- if (trimmed.includes('\n')) {
+ if (trimmed.includes('\n') || trimmed.length > 4096) {
throw new Error('loadPem: value is neither a PEM block nor a path');
}────────────────────────────────────────
Review complete
1 finding ✔
Minor 1
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Address CodeRabbit: apply HANDSHAKE_TIMEOUT_MS on accepted raw sockets (cleared when FusionConnection frames them); regression test with short handshakeTimeoutMs. All 56 local tests green including loadPem.
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) My other transformer is Optimus Prime.
────────────────────────────────────────────────────────────────────────
minor [Security & Privacy]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:238apps/alp-fusion/src/protocol/connection.ts:238-249]8;;
loadPem still passes single-line secrets to readFileSync.
The guard on Line 245 rejects only multiline values. A single-line secret
without a -----BEGIN marker reaches readFileSync, and the ENOENT
message then contains that value. This is the exact leak the comment on
Lines 243-244 describes. Add a path-shape check.
🛡️ Proposed fix
- if (trimmed.includes('\n')) {
+ // Anything that is not a plausible file path may be secret material.
+ if (trimmed.includes('\n') || trimmed.length > 4096 || trimmed === '') {
throw new Error('loadPem: value is neither a PEM block nor a path');
}────────────────────────────────────────────────────────────────────────
critical [Stability & Availability] → ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:339apps/alp-fusion/src/protocol/connection.ts:339-349]8;; Move the timeout into the TLS server configuration net.createServer(connectionListener) invokes connectionListener before later connection listeners. The FusionConnection constructor therefore clears the timeout first, and the handler at Lines 341-349 arms it again. Framed plain-TCP connections can then be destroyed after handshakeTimeoutMs of inactivity. For TLS, the connection event receives the raw net.Socket before TLS wrapping. Clearing the timeout on the TLSSocket does not clear the raw socket timeout. Add handshakeTimeout: opts.handshakeTimeoutMs ?? HANDSHAKE_TIMEOUT_MS to tlsOpts. Remove the generic socket timeout block. Test idle framed plain-TCP connections and incomplete TLS handshakes.
────────────────────────────────────────
Review complete
2 findings ✔
Critical 1
Minor 1
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
Path-only loadPem (reject inline PEM / multiline); TLS listen uses handshakeTimeout + destroy on tlsClientError (Node does not close the socket itself). Drop accept-time setTimeout so idle framed plain TCP is not killed. Regression tests for path PEM, idle TCP survival, and stalled TLS handshake close.
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) To iterate is human, to recurse divine. - L. Peter Deutsch
────────────────────────────────────────────────────────────────────────
minor [Functional Correctness]
→ ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:121apps/alp-fusion/src/protocol/connection.ts:121-145]8;;
Align the read-timeout error with the documented deadline path.
waitForData rejects with Socket read timeout when its timer fires.
That rejection propagates out of recvMessage, so the branch at Lines
140-142 never produces Timed out waiting for message. Callers therefore
see two different messages for the same condition, and the deadline branch
is dead code.
Resolve on timer expiry instead. The loop then re-checks the deadline and
throws one error type.
🔧 Proposed fix to unify the timeout error
- private waitForData(timeoutMs: number): Promise<void> {
- return new Promise((resolve, reject) => {
+ private waitForData(timeoutMs: number): Promise<void> {
+ return new Promise(resolve => {
if (this.recvBuf.length > 0 || this.destroyed) {
resolve();
return;
}
const timer = setTimeout(() => {
cleanup();
- reject(new Error('Socket read timeout'));
+ resolve();
}, timeoutMs);
Also applies to: 159-183────────────────────────────────────────────────────────────────────────
minor [Maintainability & Code Quality] → ]8;;vscode://file//work/apps/alp-fusion/src/protocol/connection.ts:341apps/alp-fusion/src/protocol/connection.ts:341-364]8;; Document non-positive handshakeTimeoutMs behavior. When handshakeTimeoutMs is 0 or negative, the guard omits handshakeTimeout, so Node uses its 120000 ms default instead of disabling the deadline. Update the ListenOptions documentation or reject non-positive values.
────────────────────────────────────────
Review complete
2 findings ✔
Minor 2
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────
Print all AI prompts: coderabbit review --show-prompts
| apps/alp-fusion/src/protocol/connection.ts | ||
|---|---|---|
| 11 ↗ | (On Diff #60829) | According to the doc there is no timeout by default. So either it's a real issue but not the right cause, or the issue is hallucinated |
| 16–19 ↗ | (On Diff #60829) | |
| apps/alp-fusion/src/protocol/constants.ts | ||
| 98–102 ↗ | (On Diff #60829) | These 2 are unused |
Address Fabien feedback: drop out-of-scope fileheader blurb; remove misleading idle-timeout docs and redundant setTimeout(0); delete unused DEFAULT_SERVER_HOST/PORT.
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Performing energy-intensive code review.
────────────────────────────────────────
Review complete
No findings ✔
5 files reviewed:
- apps/alp-fusion/DEPLOY.md
- apps/alp-fusion/README.md
- apps/alp-fusion/src/protocol/connection.ts
- apps/alp-fusion/src/protocol/constants.ts
- apps/alp-fusion/test/protocol/connection.test.ts
────────────────────────────────────────