ARTEMIS-1186 Consumer.receive hangs if http acceptor with non-zero batch-delay is configured
This commit is contained in:
parent
0f40671a3d
commit
bf814d4864
|
@ -340,14 +340,14 @@ public class NettyAcceptor extends AbstractAcceptor {
|
|||
notificationService.sendNotification(notification);
|
||||
}
|
||||
|
||||
if (batchDelay > 0) {
|
||||
flusher = new BatchFlusher();
|
||||
|
||||
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
ActiveMQServerLogger.LOGGER.startedAcceptor(host, port, protocolsString);
|
||||
}
|
||||
|
||||
if (batchDelay > 0) {
|
||||
flusher = new BatchFlusher();
|
||||
|
||||
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue