Revision fb3ec32b
ID | fb3ec32b0ea5e42f6a9a8f0d5f43779f92cfac4a |
Parent | 958ab661 |
Child | 25ba971f |
net: use close callback, not process.nextTick
Don't emit the 'close' event with process.nextTick.
Closing a handle is an operation that usually but not always completes
on the next tick of the event loop, hence using process.nextTick is not
reliable.
Use a proper handle close callback and emit the 'close' event from
inside the callback.
Update tests that depend on the intricacies of the old model.
Fixes #3459.
Files
- added
- modified
- copied
- renamed
- deleted