Right now the listener assumes the EventDispatcher will be rebooted after every request as per the normal PHP way of handling requests, not the case in a ReactPHP app, where all services are long-lived and serve many requests. Therefore, on every CORS request, the response listener is added again to the EventDispatcher queue. Not sure if there's an easy way to prevent that without a considerable refactor.
Right now the listener assumes the EventDispatcher will be rebooted after every request as per the normal PHP way of handling requests, not the case in a ReactPHP app, where all services are long-lived and serve many requests. Therefore, on every CORS request, the response listener is added again to the EventDispatcher queue. Not sure if there's an easy way to prevent that without a considerable refactor.