Hello

I found a bug where I am not sure if it's only wrong documented or if
it's not coded as intented :)

Quoting ntop.h:
> /* Timedout sessions are scanned each SESSION_SCAN_DELAY seconds */
> #define SESSION_SCAN_DELAY        60        /* 60 secs */
> #define PURGE_HOSTS_DELAY         60        /* 5 mins  */

but currently scanTimedoutTCPSessions are in hash.c in the function
> void purgeIdleHosts(int actDevice) {
which has the statement
> if(startTime < (lastPurgeTime[actDevice]+PURGE_HOSTS_DELAY))
>    return; /* Too short */
The original SESSION_SCAN_DELAY variable is only used in the
non-multithread version.

bye,

-christian-

-- 
Christian Hammers    WESTEND GmbH - Aachen und Dueren     Tel 0241/701333-0
[EMAIL PROTECTED]     Internet & Security for Professionals    Fax 0241/911879
          WESTEND ist CISCO Systems Partner - Authorized Reseller

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to