On 8/20/11 1:32 PM, Edouard De Oliveira wrote:
We shouldn't systematically copy the chain in the session as imho it's not so
usual to dynamically add filters in one particular session (the first case that
comes to my mind is dynamically protecting the session with ssl but it requires
a new connection most of the time no ?
Yes. But SSL should not be handled by a Filter, IMO.
Now, TLS is what we should consider, but it's much more a negociation
between the client and the application.
maybe some dynamic compression or some negociation mechanism that will need a
particular filter wrapping and unwrapping messages)
Again, if there is a possible negotiation, then it's already described
by the protocol, and there is nothing we can't do with a FSM. No need to
add dynamically a filter in the chain, and no need to copy the chain in
most of the case.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com