Loading src/http.cpp +9 −0 Changes for src/http.cpp: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 } } Loading Loading
src/http.cpp +9 −0 Changes for src/http.cpp: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 } } Loading