long post a while back about the security problems w/ enumeration on weak maps if you search for it.
On Thu, Apr 7, 2011 at 6:13 PM, Mikeal Rogers <mikeal.rog...@gmail.com> wrote: > 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 > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > > _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss