Re: Individual SSLFilter per connector

2024-02-17 Thread Jonathan Valliere
Okay so I need to figure out how to work it so no lock is held while calling either the upper or lower filter. CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may

Re: Individual SSLFilter per connector

2024-02-17 Thread Emmanuel Lécharny
Hi Jonathan, Kishore provided a thrzad dump a few weeks ago, which shows that there is a lock: NioProcessor-12 --- stackTrace: java.lang.Thread.State: BLOCKED (on object monitor) at org.apache.mina.statemachine.StateMachine.handle(StateMachine.java:138) - waiting to lock <0x7fc

Re: Individual SSLFilter per connector

2024-02-17 Thread Jonathan Valliere
I’m trying to understand specifically, if its how the new SSL implements a synchronized block on the receive and write IoFilter functions that is causing this problem for you. Before we go down various paths in trying to figure how to remove the synchronized blocks, I would like to confirm that i

Re: Individual SSLFilter per connector

2024-02-17 Thread Kishore Mokkarala
These changes in 2.2.x might have introduced deadlock in conjunction with the state machine. -- M.V.S.Kishore 91-9886412814 On Sat, 17 Feb 2024 at 22:12, Emmanuel Lécharny wrote: > > > On 17/02/2024 16:13, Kishore Mokkarala wrote: > > My use case is only

Re: Individual SSLFilter per connector

2024-02-17 Thread Emmanuel Lécharny
On 17/02/2024 16:13, Kishore Mokkarala wrote: My use case is only with SSLFilter. We want  secure communication between application and sniffer. We reverted to mina 2.0.25,we are not facing this issue now. I would like to know what is the difference between 2.0.25 and 2.2.1/2.2.3.

Re: Individual SSLFilter per connector

2024-02-17 Thread Emmanuel Lécharny
Hi Jonathan, regarding the queing, we did that in MINA 2.1: public void filterWrite(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws SSLException { if (LOGGER.isDebugEnabled()) { LOGGER.debug("{}: Writing Message : {}", getSessionInfo(session

Re: Individual SSLFilter per connector

2024-02-17 Thread Kishore Mokkarala
My use case is only with SSLFilter. We want secure communication between application and sniffer. We reverted to mina 2.0.25,we are not facing this issue now. I would like to know what is the difference between 2.0.25 and 2.2.1/2.2.3. On Sat, 17 Feb, 2024, 6:37 pm Jonathan Valliere, wrote: > T

Re: Individual SSLFilter per connector

2024-02-17 Thread Jonathan Valliere
There is also some additional complexity supporting the scenario where two different threads are triggering “receive” events on the filter. We either have to process ALL messages out of the payload, then AFTER send them to the downstream filters or we have to perform a kind of dual-locking mechan