Commit f5ec7b68 authored by jan.koester's avatar jan.koester
Browse files

test

parent df89b099
Loading
Loading
Loading
Loading
Loading
+3 −3
Changes for src/authdb.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -349,15 +349,15 @@ namespace authdb {
                    }

                    if(apidb){
                        for(int _retry=0; _retry<2; ++_retry){
                        for(int _retry=0; _retry<5; ++_retry){
                            try{
                                AuthBackend::Guard guard(*apidb);
                                ApiController(*apidb,did,curreq,tid,args);
                                g_Log.access(clientAddr,method,curreq.getRequestURL(),200);
                                break;
                            }catch(AuthBackendError &e){
                                if(_retry==0){
                                    std::this_thread::yield();
                                if(_retry<4){
                                    std::this_thread::sleep_for(std::chrono::milliseconds(100));
                                    continue;
                                }
                                g_Log.error(clientAddr,e.what());