Trustin,
 
I am seeing this with the 1.0.3 snapshot.  Before that with 1.0.1, 1.0.2 or 1.1 
I was not able to get even this amount of regularity in the SSL connnections, 
they locked up even more often due to that known deadlock.  I believe there is 
still a race condition still since the non-SSL work 100% of the time.  From 
what I can determine it is around the when a new ssl filter is added on an 
existing session.  I have yet to spend much time digging into the MINA layer.  
Adding a new SSLFilter object on an existing IoHandler object that had been 
previously connected during the sessionOpened(...) callback there is a chance 
that it won't be seutp correctly.  As I'm more knowledable of the high level 
MINA architecure now I will start to dig deeper into the guts to see if i can 
determine where the problem is.  If you have any idea as to where to look that 
would be great. Otherwise I'll just keep looking around and see what I can 
figure out.  I will keep you posted on what I find.
 
Thanks again for all your work on MINA,
-Scott

________________________________

From: Trustin Lee [mailto:[EMAIL PROTECTED]
Sent: Mon 4/9/2007 7:32 PM
To: [email protected]
Subject: Re: Question on SSL connections



Hi Scott,

On 4/10/07, Scott Peters <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm writing up a connector framework to use as the back end for our test
> tools.  I have been able to get non-SSL connections to work with up to
> 10k (20k server+client).  The problem is when I try to use SSL.

Glad to hear that you successfully implemented your network
application using MINA.

> I believe the problem is a race condition since it does not seem to
> reproduce itself the same every time and slight innocuous code changes
> can seem to effect if it works or not or even just running the same code
> multiple times produces different results.
>
> 1. When trying a disconnect/reconnect test. It locks up about 20% of the
> time upon the next attempt to send a message after a reconnect.
> 2. When writing out to the socket on both ends during sessionOpen(...)
> the connection just hangs and waiting on the write never returns.
> Debugging into the MINA layers show that the SSL handshake is taking
> place but then it just stops for some reason upon attempting to write to
> the session.

There's known deadlock problem with SSLFilter with MINA 1.0.2.  Could
you download 1.0.3-SNAPSHOT and try again?  FYI, 1.0.3 will be
released this week.

http://people.apache.org/repo/m2-snapshot-repository/org/apache/mina/

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6


Reply via email to