mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
SSU2: Send termination before dropping session after failure to get Session Confirmed ack
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user