Loading src/blogi.cpp +13 −3 Changes for src/blogi.cpp: 13 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ blogi::Blogi::Blogi(std::vector<netplus::socket *> serversocket, bool debug) : H std::cerr << "can't connect db for domain '" << dcfg.names[0] << "' (attempt " << attempt << "/" << maxRetries << "): " << e.what() << std::endl; if (attempt == maxRetries) { throw e; throw; } std::cerr << " retrying in " << retrySec << "s..." << std::endl; #ifdef _WIN32 Loading Loading @@ -3375,7 +3375,7 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest &curreq, const int tid, U ++retries; goto RETRY_REQUEST; } throw e; throw; } catch (std::exception &e) { Loading @@ -3386,7 +3386,7 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest &curreq, const int tid, U ++retries; goto RETRY_REQUEST; } throw e; throw; } } catch (libhttppp::HTTPException &e) Loading Loading @@ -3558,6 +3558,16 @@ public: blogi::Blogi::Cfg->getsslpassword()) { blogi::Blogi::HttpServer = this; try { for (auto* s : getServerSockets()) { s->bind(); s->listen(); } } catch (netplus::NetException &ne) { libhttppp::HTTPException he; he[libhttppp::HTTPException::Critical] << ne.what(); throw he; } } }; Loading Loading
src/blogi.cpp +13 −3 Changes for src/blogi.cpp: 13 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ blogi::Blogi::Blogi(std::vector<netplus::socket *> serversocket, bool debug) : H std::cerr << "can't connect db for domain '" << dcfg.names[0] << "' (attempt " << attempt << "/" << maxRetries << "): " << e.what() << std::endl; if (attempt == maxRetries) { throw e; throw; } std::cerr << " retrying in " << retrySec << "s..." << std::endl; #ifdef _WIN32 Loading Loading @@ -3375,7 +3375,7 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest &curreq, const int tid, U ++retries; goto RETRY_REQUEST; } throw e; throw; } catch (std::exception &e) { Loading @@ -3386,7 +3386,7 @@ void blogi::Blogi::RequestEvent(libhttppp::HttpRequest &curreq, const int tid, U ++retries; goto RETRY_REQUEST; } throw e; throw; } } catch (libhttppp::HTTPException &e) Loading Loading @@ -3558,6 +3558,16 @@ public: blogi::Blogi::Cfg->getsslpassword()) { blogi::Blogi::HttpServer = this; try { for (auto* s : getServerSockets()) { s->bind(); s->listen(); } } catch (netplus::NetException &ne) { libhttppp::HTTPException he; he[libhttppp::HTTPException::Critical] << ne.what(); throw he; } } }; Loading