node: make _getActiveHandles() return user objects
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 15 May 2012 15:24:06 +0000 (17:24 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 15 May 2012 19:01:36 +0000 (21:01 +0200)
commite813e3491e3b9d828ae678391b7c926c4ad1f180
tree71e0930c853b6e9c38563b81bdc122d35d85616c
parent88d7a101283dd4717ae6ccd1d757fdfe3f6d0089
node: make _getActiveHandles() return user objects

Before this commit, process._getActiveHandles() returned a list of internal
handles. Now, it returns the user objects that handles are attached to.

For example, a tcp_wrap handle will now return its parent net.Socket object.

It works for all handle types except timers because timer handles are shared
across multiple user objects.
src/node.cc