}
private ExecutorService createRequestDispatcherThreadPool(HttpConnector httpConnector)
{
ThreadingProfile receiverThreadingProfile = httpConnector.getReceiverThreadingProfile();
MutableThreadingProfile dispatcherThreadingProfile = new MutableThreadingProfile(receiverThreadingProfile);
dispatcherThreadingProfile.setThreadFactory(null);
dispatcherThreadingProfile.setMaxThreadsActive(dispatcherThreadingProfile.getMaxThreadsActive() * 2);
String threadNamePrefix = ThreadNameHelper.getPrefix(httpConnector.getMuleContext()) + "http.request.dispatch." + serverSocket.getLocalPort();
ExecutorService executorService = dispatcherThreadingProfile.createPool(threadNamePrefix);
return executorService;
}