草庐IT

successfulCloses

全部标签

java - Grizzly 管道泄漏 - 我做错了什么?

我写了下面的测试代码:@TestpublicvoidtestLeakWithGrizzly()throwsThrowable{ExecutorServiceexecutor=Executors.newFixedThreadPool(N_THREADS);Set>futures=newHashSet();InetSocketAddressinetSocketAddress=newInetSocketAddress(localhostAddress,111);for(inti=0;ifuture=executor.submit(newGrizzlyConnectTask(inetSocke