Commit db77baee authored by Jan Köster's avatar Jan Köster
Browse files

test

parent e4e89b88
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2913,6 +2913,14 @@ RETRY_REQUEST:
                goto RETRY_REQUEST;
            }
            throw e;
        }catch(std::exception &e){
            if(!PlgArgs->database[tid]->isConnected() && retries<MAX_RETRIES){
                std::cerr << "RequestEvent: DB connection lost (" << e.what() << "), reconnecting (attempt " << retries+1 << "/" << MAX_RETRIES << ")" << std::endl;
                PlgArgs->database[tid]->reset();
                ++retries;
                goto RETRY_REQUEST;
            }
            throw e;
        }
    }catch(libhttppp::HTTPException &e){
        if(e.getErrorType() == libhttppp::HTTPException::Note || e.getErrorType() == libhttppp::HTTPException::Warning)