Enable doRemoveProtectedExpirableData again on close connection

This commit is contained in:
Manfred Karrer 2016-06-12 12:46:12 +02:00
parent 663b505410
commit 775227b902
2 changed files with 2 additions and 7 deletions

View File

@ -51,11 +51,6 @@ public class PeerManager implements ConnectionListener {
maxConnectionsPeer = maxConnections + 4;
maxConnectionsNonDirect = maxConnections + 8;
maxConnectionsAbsolute = maxConnections + 18;
if (DevFlags.STRESS_TEST_MODE)
System.err.println(new SimpleDateFormat("HH:mm:ss.SSS").format(new Date()) +
" - maxConnections = " + maxConnections +
" / maxConnectionsAbsolute = " + maxConnectionsAbsolute);
}

View File

@ -169,9 +169,9 @@ public class P2PDataStorage implements MessageListener, ConnectionListener {
" / isIntended=" + closeConnectionReason.isIntended +
" / Memory(MB): " + Profiler.getUsedMemory());
// TODO We get closeConnectionReason TERMINATED which removes offers which should nto be removed
// TODO We get closeConnectionReason TERMINATED which removes offers which should not be removed
// TODO investigate why EOFException happens
//doRemoveProtectedExpirableData(protectedData, hashOfPayload);
doRemoveProtectedExpirableData(protectedData, hashOfPayload);
} else {
log.debug("Remove data ignored as we don't have an entry for that data.");