DelimiterBasedFrameDecoder and last frame
Gabriel Landais
gabriel.landais at gmail.com
Mon Aug 8 12:01:20 EDT 2011
Hi,
I've created a proxy for our needs
(http://scm.gforge.inria.fr/svn/gazelle/Maven/gazelle-proxy/trunk).
We are able to add some protocols and store messages seen on the
channel, but we have a problem with HL7v2 and TCP SYSLOG.
Those protocols are delimiter based. But some companies implement it
as if closing the channel was sending a last delimiter.
I've read the DelimiterBasedFrameDecoder which is used to capture the
messages, but I have no good idea on how to add the behaviour on
decodeLast of FrameDecoder.
My idea would be to override decode and decodeLast calling a decode
with a isLast parameter. Then if it's not last, keep the current
behaviour, otherwise always return the last frame. Is it a good way to
do it? Should I open a bug report and submit a patch?
Regards
Gabriel
More information about the netty-users
mailing list