Commit 7a951019 authored by jan.koester's avatar jan.koester
Browse files

test

parent 027d9b21
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1316,8 +1316,11 @@ void libhttppp::HttpEvent::Http3StreamEvent(netplus::socket *sock,
                    }
                    if (empty_streak >= max_empty)
                        break;
                    // Yield briefly but don't add excessive latency
                    std::this_thread::yield();
                    // Sleep briefly to give upstream time to produce data.
                    // yield() is essentially a no-op on Linux and burns
                    // through max_empty in microseconds, causing premature
                    // stream termination (504) for slow upstreams.
                    std::this_thread::sleep_for(std::chrono::milliseconds(10));
                }
            }