forked from I2P_Developers/i2p.i2p
SSU2: Immediately remove establish state from EstablishmentManager on fatal error
to free up space and prevent problems handling additional packets
This commit is contained in:
@@ -775,6 +775,8 @@ class EstablishmentManager {
|
||||
} catch (GeneralSecurityException gse) {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Corrupt Session/Token Request after Retry from: " + state, gse);
|
||||
// state called fail()
|
||||
_inboundStates.remove(state.getRemoteHostId());
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -881,6 +883,7 @@ class EstablishmentManager {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Corrupt Session Confirmed on: " + state, gse);
|
||||
// state called fail()
|
||||
_inboundStates.remove(state.getRemoteHostId());
|
||||
return;
|
||||
}
|
||||
InboundEstablishState.InboundState istate = state.getState();
|
||||
@@ -933,6 +936,7 @@ class EstablishmentManager {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Corrupt Session Created on: " + state, gse);
|
||||
// state called fail()
|
||||
_outboundStates.remove(state.getRemoteHostId());
|
||||
return;
|
||||
}
|
||||
notifyActivity();
|
||||
@@ -953,6 +957,7 @@ class EstablishmentManager {
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Corrupt Retry from: " + state, gse);
|
||||
// state called fail()
|
||||
_outboundStates.remove(state.getRemoteHostId());
|
||||
return;
|
||||
}
|
||||
notifyActivity();
|
||||
|
||||
Reference in New Issue
Block a user