* Handle TCP error from main thread * @private
(msg)
| 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 |
no test coverage detected