forked from I2P_Developers/i2p.i2p
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.
This commit is contained in:
@@ -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 "
|
||||
|
Reference in New Issue
Block a user