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

Skip to content
Snippets Groups Projects
Commit 2486e5e7 authored by jrandom's avatar jrandom Committed by zzz
Browse files

on some resends, drop our session tags for the peer and revert to ElGamal, since

they may have restarted or otherwise lost the tags delivered to them.
parent 5f113f16
No related branches found
No related tags found
No related merge requests found
......@@ -473,6 +473,11 @@ public class Connection {
int numSends = _packet.getNumSends() + 1;
// in case things really suck, the other side may have lost thier
// session tags (e.g. they restarted), so jump back to ElGamal.
if ( (newWindowSize == 1) && (numSends > 2) )
_context.sessionKeyManager().failTags(_remotePeer.getPublicKey());
if (_log.shouldLog(Log.WARN))
_log.warn("Resend packet " + _packet + " time " + numSends + " (wsize "
+ newWindowSize + " lifetime "
......
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