directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [jira] Commented: (DIRMINA-121) Per-port filter chain
Date Thu, 17 Nov 2005 14:21:11 GMT
2005/11/17, Irving, Dave <dave.irving@logicacmg.com>:
>
>
> > I thought IoFilter.init(IoFilterchain, NextFilter, IoSession) makes
> sense instead. Am I missing something? :)
>  The only problem here is that it implies that the filter always has a
> session after it has been init'ed.
> For shared filters this may not be the case (for example, a port filter
> would be init'ed at first use, but that doesn't mean it'll *always* have
> any sessions to talk to).
>  Keeping IoSession out of init (IMHO) steers implementors towards using
> init / destroy for per-*filter *initialisation (such as obtaining
> resources).
> A filter which wants to kick out events when a session is created can use
> sessionCreated for this.
>

Is this for another implementation which doesn't copy the chain, right?

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message