directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Therning <>
Subject Re: [mina] Problem with BlacklistFilter
Date Sat, 12 Nov 2005 07:34:44 GMT
Trustin Lee wrote:

> ...
>     It would be nice if there are always consistency in what order the
>     IoHandler callbacks are called. E.g. sessionCreated is always called
>     first, then sessionOpened, then 0 or more messageReceived/messageSent
>     followed by sessionClosed. If only sessionCreated is blocked,
>     sessionOpened could be called first which could lead to strange
>     bugs if
>     the Mina user uses sessionCreated to allocate resources etc.
> There's already consistency.  sessionCreated is invoked first, and
> then sessionOpened, and messageReceived/Sent, sessionClosed.  Please
> let me know if any exceptional event order is found.

Great! I only meant that if sessionCreated() is blocked in
BlacklistFilter and sessionOpened() isn't it could lead to
inconsistencies. But it seems to have been all taken care of now with
the new BlacklistFilter version. Thanks!


View raw message