Commit d29a5e64 authored by jan.koester's avatar jan.koester
Browse files

test

parent 1277f1c0
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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();
@@ -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;
                        }
                    }
@@ -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);
        }
      }