Merge pull request #3903 from hamsolodev/fix/ack-flood-path-retry

Test a flood ACK's route before marking it, so the reciprocal path retry runs 🤖🤖
This commit is contained in:
ripplebiz authored and GitHub committed 2026-11-22 22:20:12 +11:00
commit f6cbc11c85
1 file changed
+2 -1
+2 -1
View File
@@ -380,12 +380,13 @@ void BaseChatMesh::onAckRecv(mesh::Packet* packet, uint32_t ack_crc) {
ContactInfo* from;
if ((from = processAck((uint8_t *)&ack_crc)) != NULL) {
txt_send_timeout = 0; // matched one we're waiting for, cancel timeout timer
packet->markDoNotRetransmit(); // ACK was for this node, so don't retransmit
if (packet->isRouteFlood() && from->out_path_len != OUT_PATH_UNKNOWN) {
// we have direct path, but other node is still sending flood, so maybe they didn't receive reciprocal path properly(?)
handleReturnPathRetry(*from, packet->path, packet->path_len);
}
// NOTE: must come after the isRouteFlood() test, as it overwrites the header
packet->markDoNotRetransmit(); // ACK was for this node, so don't retransmit
}
}