diff options
Diffstat (limited to 'sql-common/client.c')
-rw-r--r-- | sql-common/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index ff36b757957..6c50cabe8fa 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -721,7 +721,9 @@ cli_advanced_command(MYSQL *mysql, enum enum_server_command command, set_mysql_error(mysql, CR_NET_PACKET_TOO_LARGE, unknown_sqlstate); goto end; } - if (net->last_errno == ER_NET_ERROR_ON_WRITE && command == COM_BINLOG_DUMP) + if ((net->last_errno == ER_NET_ERROR_ON_WRITE || + net->last_errno == ER_NET_READ_ERROR ) + && command == COM_BINLOG_DUMP) goto end; end_server(mysql); if (mysql_reconnect(mysql) || stmt_skip) |