Circumvent lack of 'close' event for tls sockets
Circumvent lack of 'close' event for tls sockets

It appears that in node.js (at least recent versions), the 'close' event
is not emitted by TLS sockets.  The CleartextStream class specifies that
the 'close' event is optional, so such operation is allowed.  In order
to compensate, the event can be trapped at the raw net.socket instead.

Fix mcavage/node-ldapjs#161

hoalex/node-ldapjs,narcisoguillen/node-ldapjs,pfmooney/node-ldapjs,917228145/node-ldapjs,msimerson/node-ldapjs,mcavage/node-ldapjs,simonbooth/node-ldapjs,appcelerator/node-ldapjs,brion25/node-ldapjs,DrHofman/node-ldapjs,tempbottle/node-ldapjs,cloudron-io/node-ldapjs