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:
jrandom
2004-11-07 02:36:42 +00:00
committed by zzz
parent 5f113f1610
commit 2486e5e75f

View File

@@ -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 "