Skip to content

Commit 78b44dd

Browse files
committed
Report gone away error in one more place
1 parent bd6850a commit 78b44dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mysqlnd/mysqlnd_wireprotocol.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,8 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
13991399
*data_size = 0;
14001400
if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) {
14011401
ret = FAIL;
1402+
SET_CONNECTION_STATE(connection_state, CONN_QUIT_SENT);
1403+
set_packet_error(error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);
14021404
} else {
14031405
*data_size += header.size;
14041406
buffer->ptr = pool->get_chunk(pool, *data_size + prealloc_more_bytes);

0 commit comments

Comments
 (0)