See T10847. If MySQL hangs (e.g., because disk space is exhausted) our recovery behavior is very bad.
The max_statement_time / max_execution_time options introduced in MySQL 5.7.4, or client-side mechanisms via MYSLQI_ASYNC, would allow us to recover from this situation (at least, in web processes) far more gracefully.