Now it is even worse, because ServerSocketReceiver uses the ExecutorService returned by Context::getExecutorService, which delegates to getScheduledExecutorService, which creates a ScheduledThreadPoolExecutor limited to 8 threads. So a ServerSocketReceiver can only accept 7 connections (one thread for the ServerSocket, and one additional thread for each connection). If we connect 8 or more clients, it hangs. |