tls: ignore .shutdown() syscall error
authorFedor Indutny <fedor.indutny@gmail.com>
Tue, 28 May 2013 13:50:38 +0000 (17:50 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Tue, 28 May 2013 16:14:44 +0000 (20:14 +0400)
commitfa170dd2b241bc0f22f88071158686075c3b269e
tree4cf4ceb0114a1db802bda56a8aa5a90747c27cdc
parent28f4c15eb49e9b7f1a430f39f0f930c38adeff60
tls: ignore .shutdown() syscall error

Quote from SSL_shutdown man page:

  The output of SSL_get_error(3) may be misleading,
  as an erroneous SSL_ERROR_SYSCALL may be flagged even though
  no error occurred.

Also, handle all other errors to prevent assertion in `ClearError()`.
lib/tls.js
src/node_crypto.cc
src/node_crypto.h