Send hybrid msg3 without a repair delay, so the packets cached behind it do not reach the responder before it completes

This commit is contained in:
JackDoan committed 2026-10-14 13:21:14 -05:00
1 parent 19578b3b6b
commit 1bf0bf382c
2 files changed
+11 -2

No files matched your search

+6 -1
View File
@@ -342,7 +342,12 @@ func (hm *HandshakeManager) sendHybridMsg3(c *hybridConfirm) {
return
}
hm.messageMetrics.Tx(header.Handshake, hybridSubtype, int64(len(pkts)+len(later)))
if err := hm.sendFragmented(pkts, later, c.send); err != nil {
// No repair delay: the packets cached during the handshake go out right
// behind msg3, and the responder drops whatever arrives before msg3
// completes. With the repair trailing, losing either data fragment would
// cost them. msg3 is four packets, too short for the tail drop the delay
// guards against.
if err := hm.sendFragmentedAfter(pkts, later, c.send, 0); err != nil {
c.hostinfo.logger(hm.l).Debug("Failed to send handshake message", "error", err)
}
}