SSL_recv_char will return garbage if the socket has been closed. This can potentially cause infinite loops in SocketInput when something like readLine() is called. The fix is simple and just requires returning a neko error when the result of SSL_read is less than or equal to 0.
SSL_recv_char will return garbage if the socket has been closed. This can potentially cause infinite loops in SocketInput when something like readLine() is called. The fix is simple and just requires returning a neko error when the result of SSL_read is less than or equal to 0.