Clear SSL error queue on shutdown

v2.x_pg_PrepStmtBase_240714
Rahim Kanji 2 years ago
parent d3e9c9c85a
commit f9d26c527e

@ -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);

Loading…
Cancel
Save