tls: force readable/writable to `true`
authorFedor Indutny <fedor.indutny@gmail.com>
Tue, 25 Feb 2014 16:38:33 +0000 (20:38 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 27 Mar 2014 19:25:30 +0000 (23:25 +0400)
commitef096f8d8fb42b5ce030d3bef34bf363b401cbcb
treeac8932fac8b41adb2721c9c091ad0ee16f307d83
parente781832ea1b4c57e8277a93def70a2d894a82dd7
tls: force readable/writable to `true`

These are an old and deprecated properties that was used by previous
stream implementation, and are still in use in some user-land modules.

Prior to this commit, they were read from the underlying socket, which
may be non-readable/non-writable while connecting or while staying
uninitialized.

Force set them to `true`, just to make sure that there will be no
inconsistency.

fix #7152
lib/_tls_wrap.js
test/simple/test-tls-connect-given-socket.js