Loading src/blogi.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
src/blogi.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -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) Loading