status_err_delay=(!res.ex_reason.empty()||!res.ex_desc.empty()||!res.ex_origin.empty())&&(found->second.err_counter>=1)&&((now.tv_sec-err_delay)>found->second.ts_err_delay.tv_sec);//error is present and err delay has passed
status_err_delay=(!res.valid)&&(found->second.err_counter>=1)&&((now.tv_sec-err_delay)>found->second.ts_err_delay.tv_sec);//error is present and err delay has passed