On Thu, Sep 27, 2012 at 7:58 AM, Evan <evantah...@gmail.com> wrote: > A rather esoteric question: > > Say I was following the example under "explicit binding" described in the > domain api page [[ http://nodejs.org/api/domain.html ]]. This is a great > real-world-ish example which shows how you might use domains in an HTTP > server to catch connection-specific errors and not take down your server in > the process. > > If you weren't to call localDomain.dispose() ( reqd.dispose() in the example > ) directly at the end of the connection closure, would Node's GC eventually > come around and remove of the domain?
Yes, provided there are no more outside references to the request or domain object. That requirement is not specific to domains, of course. > Would the act of garbage collection also call .dispose on the domain object, > or would it (and anyobjectscontained within) just be removed? The latter, the objects simply get collected. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en