Adam Brown wrote:
i'm currently using a FileRegionWriteFilter 'before' an SslFilter to
breakup FileRegion objects into chunks that SslFilter can handle
(since SslFilter doesn't handle them directly).  however, this filter
chain also has IoBuffers written to the same IoSession.

the problem i'm seeing appears to be that the IoBuffer is not being
sent by MINA (with messageSent() being sent back up the chain and
IoHandler) before the first IoBuffer generated by the
FileRegionWriteFilter is written.  because of this ordering, my
IoBuffer (not the ones created by FileRegionWriteFilter) is "lost" to
the chain and never has messageSent() called on it.  in addition to
the messageSent() call made with the FileRegion, some of the IoBuffers
generated by FileRegionWriteFilter "escape" and have messageSent()
called on them, passing them up the filter chain (and ultimately to my
IoHandler).

so really, i've got two problems :-).

Are you using an ExecutorFilter? If so, which kind of threadPool are you using ?

Can you push a very simple piece of code demonstrating the problem so that we can debu it and understand what's going on ?

Thanks !

PS: MINA version, etc... That helps !

--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to