logging, and be more forgiving if the guaranteed/failed comes back before the ack does

This commit is contained in:
jrandom
2004-04-30 07:00:13 +00:00
committed by zzz
parent f7212112b8
commit a460a0dc44

View File

@ -223,12 +223,14 @@ class I2PSessionImpl2 extends I2PSessionImpl {
if ((!accepted) || (state.getMessageId() == null)) {
if (_log.shouldLog(Log.ERROR))
_log.error("State with nonce " + state.getNonce()
+ " was not accepted? (no messageId!!)");
+ " was not accepted? (no messageId!! found=" + found
+ " msgId=" + state.getMessageId() + ")",
new Exception("Race on accept/success status messages?"));
nackTags(state);
if (_log.shouldLog(Log.CRIT))
_log.log(Log.CRIT, "Disconnecting/reconnecting because we never were accepted!");
disconnect();
return false;
//if (_log.shouldLog(Log.CRIT))
// _log.log(Log.CRIT, "Disconnecting/reconnecting because we never were accepted!");
//disconnect();
//return false;
}
if (_log.shouldLog(Log.DEBUG))