This repository was archived by the owner on Mar 21, 2020. It is now read-only.

Description
The return code from SSL_shutdown in kssl_thread.c is not correctly handled. In particular, the WANT_READ/WANT_WRITE return codes are not being handled and this could result in a dirty connection shutdown.
We need to correctly handle those conditions and wait for SSL_shutdown to return 1 before killing the TCP connection.