Loading src/http.cpp +9 −4 Changes for src/http.cpp: 9 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -248,11 +248,12 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq) }catch(netplus::NetException &re){ if(re.getErrorType()!=netplus::NetException::Note){ throw re; } else }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } } }catch(netplus::NetException &e){ libhttppp::HTTPException he; he[libhttppp::HTTPException::Error] << e.what(); Loading Loading @@ -338,6 +339,7 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq) ee[libhttppp::HTTPException::Error] << e.what(); throw ee; }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } Loading Loading @@ -391,12 +393,14 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq recv=_cltsock->recvData(data); break; }catch(netplus::NetException &re){ if(re.getErrorType()!=netplus::NetException::Note) if(re.getErrorType()!=netplus::NetException::Note){ throw re; else }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } } }catch(netplus::NetException &e){ libhttppp::HTTPException he; he[libhttppp::HTTPException::Error] << e.what(); Loading Loading @@ -481,6 +485,7 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq ee[libhttppp::HTTPException::Error] << e.what(); throw ee; }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } Loading Loading
src/http.cpp +9 −4 Changes for src/http.cpp: 9 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -248,11 +248,12 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq) }catch(netplus::NetException &re){ if(re.getErrorType()!=netplus::NetException::Note){ throw re; } else }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } } }catch(netplus::NetException &e){ libhttppp::HTTPException he; he[libhttppp::HTTPException::Error] << e.what(); Loading Loading @@ -338,6 +339,7 @@ const std::vector<char> libhttppp::HttpClient::Get(libhttppp::HttpRequest &nreq) ee[libhttppp::HTTPException::Error] << e.what(); throw ee; }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } Loading Loading @@ -391,12 +393,14 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq recv=_cltsock->recvData(data); break; }catch(netplus::NetException &re){ if(re.getErrorType()!=netplus::NetException::Note) if(re.getErrorType()!=netplus::NetException::Note){ throw re; else }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } } }catch(netplus::NetException &e){ libhttppp::HTTPException he; he[libhttppp::HTTPException::Error] << e.what(); Loading Loading @@ -481,6 +485,7 @@ const std::vector<char> libhttppp::HttpClient::Post(libhttppp::HttpRequest &nreq ee[libhttppp::HTTPException::Error] << e.what(); throw ee; }else{ std::this_thread::sleep_for(std::chrono::milliseconds(1)); continue; } } Loading