You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "jeanouii (via GitHub)" <gi...@apache.org> on 2026/04/07 15:55:18 UTC

[I] WriteTimeoutFilter does not timeout SSL write (handshake) [activemq]

jeanouii opened a new issue, #1882:
URL: https://github.com/apache/activemq/issues/1882

   WriteTimeoutFilter does not timeout the SSL write (handshake), as can be seen by this stack trace.
   
   ```
   "ActiveMQ Task-5" #195869202 daemon prio=5 os_prio=0 tid=0x00007f8b68090000 nid=0xe591 runnable [0x00007f8a7f4eb000]
      java.lang.Thread.State: RUNNABLE
       at java.net.SocketInputStream.socketRead0(Native Method)
       at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
       at java.net.SocketInputStream.read(SocketInputStream.java:171)
       at java.net.SocketInputStream.read(SocketInputStream.java:141)
       at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:464)
       at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:165)
       at sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)
       at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1401)
       at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1309)
       at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
       at sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:822)
       at sun.security.ssl.SSLSocketImpl.access$200(SSLSocketImpl.java:73)
       at sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1184)
       at org.apache.activemq.transport.tcp.TcpBufferedOutputStream.flush(TcpBufferedOutputStream.java:115)
       at java.io.DataOutputStream.flush(DataOutputStream.java:123)
       at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:194)
       at org.apache.activemq.transport.AbstractInactivityMonitor.doOnewaySend(AbstractInactivityMonitor.java:335)
       at org.apache.activemq.transport.AbstractInactivityMonitor.oneway(AbstractInactivityMonitor.java:317)
       at org.apache.activemq.transport.WireFormatNegotiator.sendWireFormat(WireFormatNegotiator.java:181)
       at org.apache.activemq.transport.WireFormatNegotiator.sendWireFormat(WireFormatNegotiator.java:84)
       at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:74)
       at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:64)
       at org.apache.activemq.transport.WriteTimeoutFilter.start(WriteTimeoutFilter.java:132)
       at org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:1026)
       - locked <0x00000006caf036c0> (a java.lang.Object)
       at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:151)
       - locked <0x00000006cb402778> (a java.lang.Object)
       at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
       at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:750)  
   ```
   
   WriteTimeoutFilter.start() method should also register and track the timeout, like already done in the oneway() method.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [I] [AMQ-9569] WriteTimeoutFilter does not timeout SSL write (handshake) [activemq]

Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon closed issue #1882: [AMQ-9569] WriteTimeoutFilter does not timeout SSL write (handshake)
URL: https://github.com/apache/activemq/issues/1882


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [I] WriteTimeoutFilter does not timeout SSL write (handshake) [activemq]

Posted by "jeanouii (via GitHub)" <gi...@apache.org>.
jeanouii commented on issue #1882:
URL: https://github.com/apache/activemq/issues/1882#issuecomment-4200386977

   This is a copy of https://issues.apache.org/jira/browse/AMQ-9569


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [I] [AMQ-9569] WriteTimeoutFilter does not timeout SSL write (handshake) [activemq]

Posted by "jeanouii (via GitHub)" <gi...@apache.org>.
jeanouii commented on issue #1882:
URL: https://github.com/apache/activemq/issues/1882#issuecomment-4200685967

   After looking at it deeply, the simple registerWrite/deRegisterWrite works. But we need a null check in the TimeoutThread to avoid NPE if the TimeoutThread kicks right before the initializeStreams() happens. Writer would be null.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact