Actually on further digging it seems that the problem is the rollback() call is not using the sendTimeout, so I think it too is being blocked by the server/slow consumer.
If a send timeout is set on the connectionFactory, shouldn't all connections/sends be using it? To recreate: Create a queue with small thresholds for disk/memory usage and setup a producer publishing to the queue with a connectionTimeout of say 2s. As soon as the queue starts blocking the timeout exception will be thrown, if you then try to close the resources it will hang indefinitely. From: christopher.l.shannon [via ActiveMQ] [mailto:ml-node+s2283324n4710341...@n4.nabble.com] Sent: 04 April 2016 18:15 To: O'Neill, Paul <onei...@dnb.com> Subject: Re: Force Producer to fail when blocked by slow consumer? Yes those settings are configured on the server side because it's the server that decides when to block. The broker is only going to throw an exception to the client if those settings have been enabled otherwise the client is just going to wait for space. As you pointed out I think the only other thing you can do on the client side is that timeout setting, but you said are seeing it hang on close. It does seem weird to me that it would hang on that close request and not be able to process that so there could be a bug there. If you could submit a small unit test that shows the close hanging when the producer is blocked that would be great and someone could look into it to see if there is some improvement that could be done to fix that. Otherwise, when I get some time I can try and reproduce the issue and create the test case. On Mon, Apr 4, 2016 at 12:24 PM, Paulon <[hidden email]</user/SendEmail.jtp?type=node&node=4710341&i=0>> wrote: > Hey, > > are they not all configured on the MQ server side though? > > I don't have access to that as its on the Customer side (we are delivering > to them) > Is there anything that can be configured on the Producer side? > > Cheers! > Paul > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Force-Producer-to-fail-when-blocked-by-slow-consumer-tp4710264p4710339.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > ________________________________ If you reply to this email, your message will be added to the discussion below: http://activemq.2283324.n4.nabble.com/Force-Producer-to-fail-when-blocked-by-slow-consumer-tp4710264p4710341.html To unsubscribe from Force Producer to fail when blocked by slow consumer?, click here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4710264&code=b25laWxscEBkbmIuY29tfDQ3MTAyNjR8LTE2MjMyOTIxMg==>. NAML<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://activemq.2283324.n4.nabble.com/Force-Producer-to-fail-when-blocked-by-slow-consumer-tp4710264p4710388.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.