You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-07-30 19:03:17 +03:00
CONC-760: valid named pipe connection is closed
Fixed different behavior of pvio_is_alive (which was first used with fix of CONC-589). Both for sockets and named pipe the function now returns true if the connection is alive, otherwise false.
This commit is contained in:
@ -385,7 +385,7 @@ mthd_my_send_cmd(MYSQL *mysql,enum enum_server_command command, const char *arg,
|
||||
|
||||
/* CONC-589: If reconnect option was specified, we have to check if the connection
|
||||
(socket) is still available */
|
||||
if (command != COM_QUIT && mysql->options.reconnect && ma_pvio_is_alive(mysql->net.pvio))
|
||||
if (command != COM_QUIT && mysql->options.reconnect && !ma_pvio_is_alive(mysql->net.pvio))
|
||||
{
|
||||
ma_pvio_close(mysql->net.pvio);
|
||||
mysql->net.pvio= NULL;
|
||||
|
Reference in New Issue
Block a user