Ensure that proper error message is sent to client, and "aborted" message appears in the log in case of wait timeout. See also timeout handling in net_serv.cc */
| 377 | See also timeout handling in net_serv.cc |
| 378 | */ |
| 379 | static void handle_wait_timeout(THD *thd) |
| 380 | { |
| 381 | thd->get_stmt_da()->reset_diagnostics_area(); |
| 382 | thd->reset_killed(); |
| 383 | my_error(ER_NET_READ_INTERRUPTED, MYF(0)); |
| 384 | thd->net.last_errno= ER_NET_READ_INTERRUPTED; |
| 385 | thd->net.error= 2; |
| 386 | } |
| 387 | |
| 388 | /** Check if some client data is cached in thd->net or thd->net.vio */ |
| 389 | static bool has_unread_data(THD* thd) |
no test coverage detected