tls_wrap: reach error reporting for UV_EPROTO
authorFedor Indutny <fedor@indutny.com>
Tue, 26 Jan 2016 20:01:12 +0000 (15:01 -0500)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit03944fe3e8bb5c827fb3cd2e43791adecaae0378
treec85f74ead70d12768b8808cd4331f17962fa6cc9
parent55cc86bb41abc0381dea7acfe5c717a16a06396f
tls_wrap: reach error reporting for UV_EPROTO

Do not swallow error details when reporting UV_EPROTO asynchronously,
and when creating artificial errors.

Fix: #3692
PR-URL: https://github.com/nodejs/node/pull/4885
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/net.js
src/stream_base.h
src/tls_wrap.cc
src/tls_wrap.h
test/parallel/test-tls-junk-server.js [new file with mode: 0644]