WL#12999: Make the client get a better error message on wait_timeout timeout

Affects: Server-8.0   —   Status: Complete

This is to track BUG#93240

From the bug: > If clients are not using the connection within wait_timeout, then they will be closed by the server and the server can write a non-clear error message to the error log: > [Note] Aborted connection <connection_id> to db: '<db>' user: '<user>' host: > '<host>' (Got timeout reading communication packets)

> Which also is the same as if there is an error due to net_read_timeout.

> And the client is not informed of the reason for the closed connection, it typically sees: > 2013: 'Lost connection to MySQL server during query' > or > 2006: 'MySQL server has gone away'

> These are very generic errors and does not give a clear hint that the > connection was closed by the server due to wait_timeout.

This worklog is about the message the client receives. BUG#93240 will have the improvement of the server error log message.