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

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

SSU2: Send termination in response to termination

parent 17695915
No related branches found
No related tags found
No related merge requests found
......@@ -630,6 +630,10 @@ public class PeerState2 extends PeerState implements SSU2Payload.PayloadCallback
public void gotTermination(int reason, long count) {
if (_log.shouldInfo())
_log.info("Got TERMINATION block, reason: " + reason + " count: " + count + " on " + this);
if (reason != SSU2Util.REASON_TERMINATION) {
UDPPacket pkt = _transport.getBuilder2().buildSessionDestroyPacket(SSU2Util.REASON_TERMINATION, this);
_transport.send(pkt);
}
_transport.getEstablisher().receiveSessionDestroy(_remoteHostId, this);
}
......
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