mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 00:02:59 +00:00
2004-11-27 jrandom
* Some cleanup and bugfixes for the IP address detection code where we
only consider connections that have actually sent and received messages
recently as active, rather than the mere presence of a TCP socket as
activity.
This commit is contained in:
1 parent
35e94a7f65
commit
72be9b5f04
7 files changed
+65
-11
No files matched your search
@@ -325,8 +325,8 @@ public class Connection {
|
||||
_occurredEventCount++;
|
||||
} else {
|
||||
_occurredTime = now;
|
||||
if (_occurredEventCount > 5) {
|
||||
_log.log(Log.CRIT, "More than 5 events (" + _occurredEventCount + ") in a second on "
|
||||
if (_occurredEventCount > 10) {
|
||||
_log.log(Log.CRIT, "More than 10 events (" + _occurredEventCount + ") in a second on "
|
||||
+ toString() + ": scheduler = " + sched);
|
||||
}
|
||||
_occurredEventCount = 0;
|
||||
|
||||
Reference in new issue
Block a user