Loading plugins/nginxfiler/filer.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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; Loading Loading @@ -396,6 +397,7 @@ namespace blogi { int _NPort; std::string _NPrefix; bool _NSSL; int _Timeout; }; }; Loading Loading
plugins/nginxfiler/filer.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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; Loading Loading @@ -396,6 +397,7 @@ namespace blogi { int _NPort; std::string _NPrefix; bool _NSSL; int _Timeout; }; }; Loading