ssl_stream.c SSL_set_mode(stream_impl->ssl, SSL_MODE_AUTO_RETRY); added before read operation to fix the premature close error