The controller service StandardHttpContextMap provides the ability to store and retrieve HTTP requests and responses external to a processor, so that multiple processors can interact with the same HTTP request.
In this controller, a timeout is defined to clean the context map in case requests have not been answered after a given threshold. The cleanup process is scheduled every timeout / 2 as runnable task. However "If any execution of the task encounters an exception, subsequent executions are suppressed."
The problem is located here:
The sendError method can throw IllegalStateException in some situations "if the response was committed before this method call". If such an error is thrown the task will be never scheduled again and the map never cleaned.