Hi Frédéric, On Dec 10, 2007 11:40 PM, Frédéric Brégier <[EMAIL PROTECTED]> wrote: > Hi Trustin, > First, yes, IoService.getCumulativeManagedSessionCount() returns > the correct result. > What I was looking for (and my question was not enough clear) > is the others statistics on past sessions (througput, byte or message > read/written, ...). They are always set to 0. > When I wrote "number on past sessions", I was talking on those > numbers on already closed sessions (so as "past sessions"). > I don't know if its a bug or not... > I let you investigate... > It is not prioritary, so take your time.
Oh I see. IoSession clears all of its statistic properties (i.e. resets to 0) as soon as the session is closed. I think this behavior is sane for throughput, scheduledWrites, and idleCounts because there's no idle and closed connection nor a closed connection with non-zero throughput. But I think we need to retain other counters like read/written bytes/messages. WDYT? Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6