Thread state should be checked after each request.
Otherwise it would finish all pending queries, some of which may have connection already dropped. This usually isn't a problem, it just presents a longer wait for the timeouts.
Please register or sign in to comment