SSU2: Send termination before dropping session after failure to get Session Confirmed ack

This commit is contained in:
zzz
2022-07-08 11:09:58 -04:00
parent 8818c78cbd
commit 6ede06cfdf
@@ -221,6 +221,8 @@ public class PeerState2 extends PeerState implements SSU2Payload.PayloadCallback
if (_sessConfSentCount >= MAX_SESS_CONF_RETX) {
if (_log.shouldWarn())
_log.warn("Fail, no Sess Conf ACK rcvd on " + this);
UDPPacket pkt = _transport.getBuilder2().buildSessionDestroyPacket(SSU2Util.REASON_FRAME_TIMEOUT, this);
_transport.send(pkt);
_transport.dropPeer(this, false, "No Sess Conf ACK rcvd");
_sessConfForReTX = null;
return null;