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

http3 reset

parent 1faf88df
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2109,6 +2109,15 @@ size_t libhttppp::HttpClient::readBodyChunkNonBlocking(char *buf, size_t bufsize
                    _streamMode = STREAM_NONE;
                    return static_cast<size_t>(-1);
                }
                if (q->isStreamReset(_streamH3Sid)) {
                    // Upstream aborted mid-body (e.g. it stalled short of the
                    // advertised Content-Length). RESET_STREAM never sets
                    // recv_complete, so without this check the loop above
                    // would retry forever. Report it the same way callers
                    // already treat a hard stream error.
                    _streamMode = STREAM_NONE;
                    return static_cast<size_t>(-1);
                }
                return 0;  // No data yet — caller should retry later
            }
        }