Hi Trustin,
Like i already replied myself,
synchronizing on IoSession.write did the job.
Unfortunately i can not open source the
code ;-( (company decision), but like i described
it is any rmi-like framework with extended
functionality like oneway messages, callbacks,
multiple targets in a single invocation, ...
The test case i wrote had several threads
doing invocations over the same (remote) proxy.
Without SSLFilter no problem,
with SSLFilter the test case only succeeded
when the framework sync'ed on IOSession.write.
Performance impact was minimal, so this fix did
the job for me.
Hope this helps,
Johan
On 23 May 2007, at 07:54, Trustin Lee wrote:
Hi Johan,
On 5/20/07, Johan Cloetens <[EMAIL PROTECTED]> wrote:
Hi,
I am having some trouble with the SSLFilter included in mina.
I have developed a rmi-like framework using mina.
It supports things like callbacks and oneway messages,
so it isn't purely request/response based:
messages can flow in over the session either way
without any restrictions.
I have no problems whatsoever without the SSLFilter.
Using the filter though gives my quite often problems
like "bad record mac" and alike.
Single threaded pure request/response gives no problems.
So i suspect there are some restrictions how the SSLFilter
can be used?
SSLFilter should be thread safe. If not, it's a bug.
Which version of MINA are you using? Could you please provide us how
you were able to reproduce the problem?
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6