Failing requests from old clients ignores failed requests. Failing a request with a data error sets the client_id to 0.
" SET start = NULL, client_id = 0, "
" connection_error_count = connection_error_count + 1 "
" WHERE start IS NOT NULL "
+ " AND failed IS NOT NULL "
" AND client_id < :clientId ");
q.bindValue(":clientId", clientId);
{
QSqlQuery &q = prepare(
"UPDATE pending_request "
- " SET failed = now() "
+ " SET failed = now(), client_id = 0 "
" WHERE aid = :aid "
" AND eid = :eid "
" AND fid = :fid "