requests come in to a server, you want to stick them in a hash so that you can query the server at any time for all the "current" queries.

the problem is that, when using objects, you'll always leak. there are too many reasons a request might "go away" and too many asynchronous "owners" of that request to reliably remove it from the hash, especially in node.

ephemeron tables looked like a good way to solve this, we can stick them in the table and when nobody else has a reference to them they get collected. at any point we can query the server for all existing request/response objects.

if we have no way to enumerate the map we can't do this.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to