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

   @cshannon @tabish121 @jeanouii I changed the approach as you suggested.
   
   I introduce a configurable `requestTimeout` (default 0, no timeout as today) 
on `ActiveMQConnectionFactory` and `ActiveMQConnection`, similar to the 
existing `sendTimeout`. 
   
   When set, `syncSendPacket(Command)` uses `poll(timeout)` instead of 
`take()`, throwing `RequestTimedOutIOException` when the timeout expires.
       
   NB: it can be configured programmatically via 
`factory.setRequestTimeout(ms)` or via URL parameter `jms.requestTimeout=ms`.


-- 
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