net: Defer reading until listeners could be added
Defer reading until user-land has a chance to add listeners. This allows the TLS wrapper to listen for _tlsError and trigger a clientError event if the socket already has data that could trigger. Fixes: https://github.com/nodejs/io.js/issues/1114 PR-URL: https://github.com/nodejs/io.js/pull/1496 Reviewed-By:Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By:
Fedor Indutny <fedor.indutny@gmail.com>
parent
7a3006ef
Please register or sign in to comment