Undo change in OpenSSL 1.1.1 which enabled SSL_MODE_AUTO_RETRY.
This will avoid hangs in blocking mode after an non-app record is received, but an app record is not yet available.
Also enabled SSL_MODE_ENABLE_PARTIAL_WRITE, which allows writes with fewer than all records written to be successful.