mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sandor <adi...@yahoo.com>
Subject Re: SSLFilter thread safe?
Date Fri, 13 Jul 2007 11:53:24 GMT
Trustin Lee writes:
> 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?

I think I'm experiencing the same problem, using MINA 1.1.0
Please download the test code from http://aditsu.net/ssltest.zip
Run the Server, then the Client; almost every time, the client will die after
10-20 seconds with a stack trace like this:

Exception in thread "main" javax.net.ssl.SSLException: bad record MAC
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1477)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1438)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:781)
	at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:677)
	at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
	at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
	at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
	at java.io.InputStreamReader.read(InputStreamReader.java:167)
	at java.io.BufferedReader.fill(BufferedReader.java:136)
	at java.io.BufferedReader.readLine(BufferedReader.java:299)
	at java.io.BufferedReader.readLine(BufferedReader.java:362)
	at ssl.Client.main(Client.java:22)

Indeed, synchronizing session.write seems to work.
I'd appreciate if this bug could be fixed, and I'll provide any further
information you may need.

Regards,
Adrian


Mime
View raw message