Skip to content

net: unref timer in parent sockets

Rodrigo Muino Tomonari requested to merge github/fork/indutny/fix/gh-9242 into v1.x

TLSSocket wraps the original net.Socket, but writes/reads to/from TLSSocket do not touch the timers of original net.Socket.

Introduce socket._parent property, and iterate through all parents to unref timers and prevent timeout event on original net.Socket.

Fix: https://github.com/joyent/node/issues/9242

Merge request reports

Loading