On 5/9/07, seven <[EMAIL PROTECTED]> wrote:
Hello, I have a problem with mina-filter-ssl-1.1.0 release: sometimes for unknown reasons and in an arbitrary way, after a client connects to a SSL enabled server, it does not send anything. On the server side and the client side as well, only CREATED and OPENED events are fired and nothing further happens ( except IDDLE events ) even if the client issued the first session.write(). In order to reproduce this, I wrote a simple client that connects to the echo server found in the examples. org.apache.mina.example.echoserver.Main should be modified with USE_SSL=true, PORT = 8090 and bogus.cert has to be generated as documented in org.apache.mina.example.echoserver.ssl.BogusSSLContextFactory and placed in the classpath of the server and server launchers. Until mina-1.1.0 was released I worked with a snapshot release and did not encounter this problem. So if one uses a mina-filter-ssl-1.1.0-SNAPSHOT.jar instead of mina-filter-ssl-1.1.0.jar the 'silence' problem does not occur. Fortunately I have the snapshot sources from the svn that were used to build mina-filter-ssl-1.1.0-SNAPSHOT.jar. The revision number for the working SSLHandler is 471502 respectively 507461 for SSLFilter. Attached is the client source that reproduces the problem. It has to be placed in org.apache.mina.example.echoserver package. Regards, Horia http://www.nabble.com/file/8269/Client.java Client.java
I made a big change in SSLFilter and SSLHandler to fix a deadlock issue when releasing 1.1.0. But I couldn't reproduce your problem with the source code you provided. How often can it be reproduced? Please attach the full thread dump and the log file with DEBUG level enabled for MINA. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
