Follow-up to #36135 (review), fixing a false comment flagged in review.
The comment says a completed request is always handed back to a worker. Since #36174 it stays in m_req when the send buffer is over MAX_BODY_SIZE.
Follow-up to #36135 (review), fixing a false comment flagged in review.
The comment says a completed request is always handed back to a worker. Since #36174 it stays in m_req when the send buffer is over MAX_BODY_SIZE.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36379.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline and AI policy for information on the review process. A summary of reviews will appear here.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
125 | @@ -126,7 +126,8 @@ void Drain(const std::shared_ptr<FuzzClient>& client, RunResult& out) 126 | 127 | if (!req) { 128 | if (const HTTPRequest* cur{client->GetRequest()}) { 129 | - // Complete is always handed back, never left behind. 130 | + // Complete is handed back unless the send buffer is over MAX_BODY_SIZE (see #36174),
Not sure about all the raw #id in code comments. Either the pull request context is important, and it should be a full URL, so that it is easily navigable, or it should just be removed or refer to the (other) code itself.
Same above: How is it relevant that ReadBody returned an empty string before 35182? The comments should explain the current code and context and not some irrelevant context or irrelevant history.
dropping both
A completed request is no longer always handed back to a worker; it stays
in m_req when the send buffer is full.
Also drop the pre-existing comment/note about what ReadBody() returned before the libevent
replacement.