From 7653d17e6ace6e37effdca706b96ca327cd7b04e Mon Sep 17 00:00:00 2001 From: jbertram Date: Thu, 17 Mar 2016 09:22:05 -0500 Subject: [PATCH] ARTEMIS-441 correct time-unit for large msg poll --- .../artemis/core/client/impl/LargeMessageControllerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/LargeMessageControllerImpl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/LargeMessageControllerImpl.java index 289181e825..77134eec93 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/LargeMessageControllerImpl.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/LargeMessageControllerImpl.java @@ -1089,7 +1089,7 @@ public class LargeMessageControllerImpl implements LargeMessageController { } int sizeToAdd = currentPacket != null ? currentPacket.chunk.length : 1; - currentPacket = largeMessageData.poll(readTimeout, TimeUnit.SECONDS); + currentPacket = largeMessageData.poll(readTimeout, TimeUnit.MILLISECONDS); if (currentPacket == null) { throw new IndexOutOfBoundsException(); }