Hello, we've developed an in-house framework for secure communications using our own mechanism for handshaking and encryption, right now this framework is using blocking sockets, I'm migrating it to use MINA so we can improve its scalability.

I will like to implement handshaking and encryption as filters, but i have found a little issue while doing this, I need that both filters are able to send data back to its peer during the processing of an incoming message that is while the invocation of messageReceived. Right now I'm doing this by invoking session.write and setting and attribute in the session so any "upper" filter, such as ProtocolCodecFilter (I extended it so it can handle this special case) know that it should ignore this message. I don't like this workaround so I've been wondering is there is a more elegant or correct way to do this?

If there isn't any, I was thinking about changing IoFilter and add to each method a previousFilter so I could just invoke previousFilter.filterWrite. Is this possible? Should I work on it and send a patch or commit the change?

Thanks in advance.

German Borbolla Flores
Project Lead
Insys
Mexico, DF Mexico

Reply via email to