Loading plugins/youtube/youtube.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -347,8 +347,10 @@ namespace blogi { netplus::x509cert ycert; ycert.loadFromBuffer(ycert.pemCertToDer(GOOGLECA)); libhttppp::HttpUrl yurl("https://www.googleapis.com"); libhttppp::HttpClient clt(yurl); // ycsock->setTimeout(10); // Bound connect and send/recv so a stalled googleapis // connection can't block this worker indefinitely. libhttppp::HttpClient clt(yurl, 2, 10); clt.setTimeout(10); libhttppp::HttpRequest nreq; nreq.setRequestType(GETREQUEST); Loading Loading
plugins/youtube/youtube.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -347,8 +347,10 @@ namespace blogi { netplus::x509cert ycert; ycert.loadFromBuffer(ycert.pemCertToDer(GOOGLECA)); libhttppp::HttpUrl yurl("https://www.googleapis.com"); libhttppp::HttpClient clt(yurl); // ycsock->setTimeout(10); // Bound connect and send/recv so a stalled googleapis // connection can't block this worker indefinitely. libhttppp::HttpClient clt(yurl, 2, 10); clt.setTimeout(10); libhttppp::HttpRequest nreq; nreq.setRequestType(GETREQUEST); Loading