Loading src/http.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -226,8 +226,9 @@ libhttppp::HttpClient::HttpClient(const HttpUrl& desturl, int vers) // HTTP/3 failed — fallback to HTTP/1.1 or HTTP/2 resetConnection(); } } } else { resetConnection(); } } catch (netplus::NetException &e) { HTTPException ex; ex[HTTPException::Error] << "HttpClient ctor connect failed: " << e.what(); Loading Loading @@ -869,7 +870,7 @@ libhttppp::HttpResponse libhttppp::HttpClient::GetStream(libhttppp::HttpRequest ee[HTTPException::Error] << "HTTP/3 header timeout"; throw ee; } _sw.waitRead(*_cltsock, 1); _sw.waitRead(*_cltsock, 50); continue; } } Loading Loading @@ -2650,7 +2651,7 @@ const std::vector<char> libhttppp::HttpClient::_h2Request( // Wait for socket readability only when truly idle if (!q->hasStreamData(stream_id) && !q->isStreamComplete(stream_id)) { _sw.waitRead(*_cltsock, 1); _sw.waitRead(*_cltsock, 50); } } Loading Loading
src/http.cpp +5 −4 Original line number Diff line number Diff line Loading @@ -226,8 +226,9 @@ libhttppp::HttpClient::HttpClient(const HttpUrl& desturl, int vers) // HTTP/3 failed — fallback to HTTP/1.1 or HTTP/2 resetConnection(); } } } else { resetConnection(); } } catch (netplus::NetException &e) { HTTPException ex; ex[HTTPException::Error] << "HttpClient ctor connect failed: " << e.what(); Loading Loading @@ -869,7 +870,7 @@ libhttppp::HttpResponse libhttppp::HttpClient::GetStream(libhttppp::HttpRequest ee[HTTPException::Error] << "HTTP/3 header timeout"; throw ee; } _sw.waitRead(*_cltsock, 1); _sw.waitRead(*_cltsock, 50); continue; } } Loading Loading @@ -2650,7 +2651,7 @@ const std::vector<char> libhttppp::HttpClient::_h2Request( // Wait for socket readability only when truly idle if (!q->hasStreamData(stream_id) && !q->isStreamComplete(stream_id)) { _sw.waitRead(*_cltsock, 1); _sw.waitRead(*_cltsock, 50); } } Loading