Skip to content

Commit

Permalink
Report gone away error in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Oct 29, 2020
1 parent bd6850a commit 78b44dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/mysqlnd/mysqlnd_wireprotocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,8 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
*data_size = 0;
if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) {
ret = FAIL;
SET_CONNECTION_STATE(connection_state, CONN_QUIT_SENT);
set_packet_error(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);
} else {
*data_size += header.size;
buffer->ptr = pool->get_chunk(pool, *data_size + prealloc_more_bytes);
Expand Down

0 comments on commit 78b44dd

Please sign in to comment.