jbonofre commented on PR #1740:
URL: https://github.com/apache/activemq/pull/1740#issuecomment-4025881503

   @cshannon it's my new work on an old issue from Jira 
([AMQ-6763](https://issues.apache.org/jira/browse/AMQ-6763)). I was able to 
reproduce it when using XA:  the broker never sent back a response to these XA 
commands. 
   
   In my case, I reproduced the issue with simulating network failure: the TCP 
connection to the broker silently dropped, the request was sent but the 
response never arrives, and no TCP error was detected, meaning the XA thread 
hangs forever.
   
   I believe that the similar behavior can happen:
   - when the broker is not responsible (overloaded): the broker received the 
command but is stuck processing it (slow processing)
   - if `wireFormat.maxInactivityDuration` is too high (or disabled), dead 
connections aren't detected promptly.
   
   This PR aims to set timeout to avoid the thread handing forever.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to