I've been working on adding domains support to a fairly complex piece of
error-tracing code and am looking for some guidance on what's supposed to
happen when domain.dispose is run.

In a couple of my exploratory tests, I was disposing of every HTTP server
request and was running into something that felt a lot like a race
condition. domain.dispose fires before all of the writes to the socket
complete or the socket is destroyed, leaving it on the active handle list,
which prevents the process from ever exiting. I understand that dispose is
meant for cleanup in error handlers, but shouldn't it also deal with normal
streams / EventEmitters without leaving handles in a stuck state? Is there
something I'm not getting?

thanks,
Forrest

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to