Repository: node
Issue: [bug] v16.3.0 - https server request.socket.destroy() vs ._parent.destroy() inconsistency
Labels: https

While responding to a request destroying the TLSSocket results in the response's `close` event. But destroying the parent socket does not result in this.

But I feel that doing a destroy() on the parent socket should result in the same behavior as a destroy executed on the TLSSocket. If I understand it correctly TLSSocket is just piping encrypted data through the parent socket and is just a higher level interface for dealing with encrypted connections.

Code to test with, run it and open https://localhost:1234 then watch the terminal. Then run it again changing `if (1)` to `if (0)`.
```js
import * as zlib from 'zlib'
import * as https from 'https'
const log = console.log

function main() {
  https.createServer(tlsOptions, (request, response) => {
    response.on('close', () => {
      log('Response closed')
    })
    if (1) request.socket.destroy() // this causes the response to close
    else request.socket._parent.destroy() // but destroying the parent socket doesn't, which to me is a bug
  })
  .listen(1234)
  .on('clientError', (err, socket) => {
    log('clientError:', err)
  })
}

const tlsOptions = {
  key: zlib.gunzipSync(Buffer.from('H4sIAAAAAAAAA22VtxKrWAIFc75icuoVCE+IuaCL90YZ3koYYQRfv29n0z3pSbo66T9//k4EKrT+8XzhH8eDkRCAf3SQ/vf4g5gQgumEoiDokuACYQUx3rGyzFatnGHixPSn677S8kLXoF1pbC63Dz5yeH5jvodLP6RbFzzUvnXTlnvVjd8XDN7jYyxpKVWsRO5O2mwmqq8h/7J9FjxI5fl1pgebW5pYhJGEfL1vToa0zx19clJEJc2cnp+KY1epcVAS9m6pwpGbPs3VRZvmLA4cQc6cMMKHAL6fG0Kt/QFGCSq/znzfPil9M+s8x3llqLnm5tgebhXUmFbj73vr09/N+OAS98GWNeD5uoZEGUsKn0Bheyn0t6bfT7dqgwaX0bxLmj1eFuvDfy0Mj0Bz5dGlu+TNpNIpFGdI75eLbI/M1/f2uLajfLUfC3OB5aYhNg87+cVZmIjGZpxQFlxBFKa/sqXSxUIfui3n3uJcIuHXW4ateKjPRB88Ss0aVQ7fhLFtrMs7KImd+DOMVEpLKtTGLQ6uiW6eszI3ONiUd4Wg27O9/GaumH3UlDKVQsyV5wpXoVBUMm6v05oIjY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2ldgctE7vZenGjd3bYshbb62CX3rTvjTT7rNb5DaNwH4r2pdBrC7Zh+u+rtej033eX8qdjjUJhmFby6T7ttVXGvP5sVyXHXu6fOE3JdFFfxydlPxyT9xrNaoybbZ0nL7jXYPpIm6vCiMb5G3z/bJzBwO3urKGeIh297W8N2b3dT+fr8XVX399ozAvdD8T2H8Ab7O4SO8RAAA=', 'base64'))
}
// log(zlib.gzipSync(tlsOptions.key).toString('base64'))
// log(zlib.gzipSync(tlsOptions.cert).toString('base64'))

main()
```