I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 6ede06cf authored by zzz's avatar zzz
Browse files

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

parent 8818c78c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment