ARTEMIS-1186 Consumer.receive hangs if http acceptor with non-zero batch-delay is configured

This commit is contained in:
Tomas Hofman 2017-05-29 12:00:32 +02:00 committed by Clebert Suconic
parent 5372059e7b
commit 9b5440e5a4
1 changed files with 6 additions and 6 deletions

View File

@ -380,14 +380,14 @@ public class NettyAcceptor extends AbstractAcceptor {
notificationService.sendNotification(notification); notificationService.sendNotification(notification);
} }
ActiveMQServerLogger.LOGGER.startedAcceptor(acceptorType, host, port, protocolsString);
}
if (batchDelay > 0) { if (batchDelay > 0) {
flusher = new BatchFlusher(); flusher = new BatchFlusher();
batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS); batchFlusherFuture = scheduledThreadPool.scheduleWithFixedDelay(flusher, batchDelay, batchDelay, TimeUnit.MILLISECONDS);
} }
ActiveMQServerLogger.LOGGER.startedAcceptor(acceptorType, host, port, protocolsString);
}
} }
@Override @Override