Commit 047ee115 authored by jan.koester's avatar jan.koester
Browse files

test

parent c57d52d2
Loading
Loading
Loading
Loading
+13 −3
Changes for src/blogi.cpp: 13 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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
@@ -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)
        {
@@ -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)
@@ -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;
        }
    }
};