MCPcopy Create free account
hub / github.com/deepclause/agentvm / _handleTcpError

Method _handleTcpError

src/network.js:233–242  ·  view source on GitHub ↗

* Handle TCP error from main thread * @private

(msg)

Source from the content-addressed store, hash-verified

231 * @private
232 */
233 _handleTcpError(msg) {
234 const { key } = msg;
235 const session = this.natTable.get(key);
236 if (!session) return;
237
238 // Send RST to VM
239 this.sendTCP(session.srcIP, session.srcPort, session.dstIP, session.dstPort,
240 session.mySeq, session.myAck, 0x04); // RST
241 this.natTable.delete(key);
242 }
243
244 /**
245 * Handle TCP connection closed from main thread

Callers 1

pollNetResponsesMethod · 0.95

Calls 1

sendTCPMethod · 0.95

Tested by

no test coverage detected