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 :-). am i misusing FileRegionWriteFilter (and SslFilter)? or has anyone else experienced these problems & can comment on a solution to these issues? -adam
