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:
jrandom
2004-11-27 21:02:06 +00:00
committed by zzz
parent 35e94a7f65
commit 72be9b5f04
7 changed files with 65 additions and 11 deletions

View File

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