|
|
|
|
@ -403,7 +403,8 @@ PgSQL_Data_Stream::~PgSQL_Data_Stream() {
|
|
|
|
|
// other part, we perform a 'quiet' shutdown. For more context see
|
|
|
|
|
// MYSQL #29579.
|
|
|
|
|
SSL_set_quiet_shutdown(ssl, 1);
|
|
|
|
|
SSL_shutdown(ssl);
|
|
|
|
|
if (SSL_shutdown(ssl) < 0)
|
|
|
|
|
ERR_clear_error();
|
|
|
|
|
}
|
|
|
|
|
if (ssl) SSL_free(ssl);
|
|
|
|
|
}
|
|
|
|
|
@ -487,7 +488,8 @@ void PgSQL_Data_Stream::shut_hard() {
|
|
|
|
|
// other part, we perform a 'quiet' shutdown. For more context see
|
|
|
|
|
// MYSQL #29579.
|
|
|
|
|
SSL_set_quiet_shutdown(ssl, 1);
|
|
|
|
|
SSL_shutdown(ssl);
|
|
|
|
|
if (SSL_shutdown(ssl) < 0)
|
|
|
|
|
ERR_clear_error();
|
|
|
|
|
}
|
|
|
|
|
if (fd >= 0) {
|
|
|
|
|
shutdown(fd, SHUT_RDWR);
|
|
|
|
|
|