Affects Version/s: 2.0.16
Fix Version/s: 2.0.17
Xubuntu 16.04. Kernel 4.4.0-112-generic
Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
This is probably related to
See attached unit test SslTestHandshakeException. For the test to run you also need the attached file emptykeystore.sslTest placed into mina-core/src/test/resources/org/apache/mina/filter/ssl/. The purpose of the test is simply to provoke an SSLHandshakeException. I have seen the problematic behaviour once in a while on processes implemented with QuickFIX/J but now luckily got it reproduced in a unit test.
When I run it against MINA-2.0.17-SNAPSHOT I will get (almost instantly) the stack trace as in mina-dispose-hang-2.0.17-SNAPSHOT.txt and the test will hang.
When ran against MINA-2.0.17-SNAPSHOT plus the patch from
DIRMINA-1076 I will get the stack trace from attached file mina-dispose-hang-with- DIRMINA-1076-patch.txt and additionally the following log output (but the test will still hang):
In both attached stack traces the process is hanging in a call to dispose() although one time it is in the NioSocketConnector and in the other case in the NioSocketAcceptor.