NissimShiman commented on code in PR #6414: URL: https://github.com/apache/nifi/pull/6414#discussion_r990404183
########## nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-server/src/test/java/org/apache/nifi/distributed/cache/server/map/TestDistributedMapServerAndClient.java: ########## @@ -312,6 +354,26 @@ private DistributedMapCacheClientService createClient(final int port) throws Ini return client; } + private Thread startServerSocket(ServerSocketChannel serverSocketChannel) { + final Runnable runnable = new Runnable() { + @Override + public void run() { + while (true) { + try { + serverSocketChannel.accept(); + } catch (final IOException e) { + return; + } + } + } + }; + final Thread thread = new Thread(runnable); + thread.setDaemon(true); + thread.setName("Test Server Socket"); + thread.start(); + return thread; + } Review Comment: Thank you for the fast turnaround @exceptionfactory! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org