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