diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 0247eeac747bbf..3559f961e65cb8 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -282,6 +282,14 @@ TLSSocket.prototype._wrapHandle = function(handle) { res = tls_wrap.wrap(handle, context.context, options.isServer); res._parent = handle; res.reading = handle.reading; + Object.defineProperty(handle, 'reading', { + get: function readingGetter() { + return res.reading; + }, + set: function readingSetter(value) { + res.reading = value; + } + }); // Proxy HandleWrap, PipeWrap and TCPWrap methods proxiedMethods.forEach(function(name) {