tls_wrap: ignore ZERO_RETURN after close_notify
authorFedor Indutny <fedor@indutny.com>
Mon, 6 Oct 2014 12:23:01 +0000 (16:23 +0400)
committerFedor Indutny <fedor@indutny.com>
Mon, 6 Oct 2014 14:45:53 +0000 (18:45 +0400)
commitda188d13aa9ab6cc281a99a4972ddbce2021d30f
tree7b05d961c72a05fc6232c8b4c4e8c139c1306f9f
parentcb97bcd6f982b35a6fe4d41d884354f72905365d
tls_wrap: ignore ZERO_RETURN after close_notify

Do not call SSL_read() and ignore ZERO_RETURN if the connection was
shutdown and there could not be any reads.

Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
PR-URL: https://github.com/joyent/node/pull/8519
src/tls_wrap.cc