Closed gnestor closed 5 years ago
I was able to fix the "zmq.error.ZMQError: Too many open files" issue by modifying the session logic in @jupyterlab/vdom-extension, so this PR may not be necessary, unless there is a benefit to using one global comm channel for all vdom event handling.
When using the new event handler feature in vdom, it's easy to run into the following issue:
as a result of connecting to too many comms. This is because each event handler was registering its own comm channel.
The simple solution is to register a single, global comm channel for all vdom components to use and include a unique id in the payloads. This PR makes the necessary changes in vdom.
The changes to vdom involve using a constant
vdom
as the comm target name and maintaining a map of uniquehandler_id
s and handler functions.