TRANSACTION
The transaction as a whole, through transaction_timeout, the time between statements included: at the deadline the server ends the session - running statement or none - and whatever touches it next gets SessionTerminatedException(TRANSACTION_TIMEOUT). It costs a connection each time it fires.