Commit 3e387d97 authored by jan.koester's avatar jan.koester
Browse files

nginxfiler time per config adjustable

parent 5c9cd5dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ namespace blogi {
                _NPort=Args->config->getIntValue(Args->config->getKey("/BLOGI/NGINXFILER/PORT"),0);
                _NPrefix=Args->config->getValue(Args->config->getKey("/BLOGI/NGINXFILER/PREFIX"),0);
                _NSSL=Args->config->getIntValue(Args->config->getKey("/BLOGI/NGINXFILER/SSL"),0);
                _Timeout=Args->config->getIntValue(Args->config->getKey("/BLOGI/NGINXFILER/TIMEOUT"),0);
            }catch(confplus::ConfException &e){
                libhttppp::HTTPException err;
                err[libhttppp::HTTPException::Error] << "NginxFiler init failed: " << e.what();
@@ -164,7 +165,7 @@ namespace blogi {
                try{
                    srvsock=std::make_shared<netplus::tcp>(_NHost.c_str(),_NPort,2,0);
                    cltsock=std::make_shared<netplus::tcp>();
                    srvsock->setTimeout(1);
                    srvsock->setTimeout(_Timeout);
                    cltsock->connect(srvsock.get());
                }catch(netplus::NetException &e){
                    libhttppp::HTTPException he;
@@ -396,6 +397,7 @@ namespace blogi {
        int         _NPort;
        std::string _NPrefix;
        bool        _NSSL;
        int         _Timeout;
    };
};