fuzz: fix stale comments in http_request #36379

Manually merged
frankomosh merged 1 commit from 2026-09-fuzz-http-comment-fix into master 2026-10-15 08:15:40 +00:00 AGit
frankomosh commented 2026-09-29 08:56:34 +00:00 (Migrated from github.com)

Follow-up to https://github.com/bitcoin/bitcoin/pull/36135#discussion_r4030189935, 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 https://github.com/bitcoin/bitcoin/pull/36135#discussion_r4030189935, 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.
DrahtBot commented 2026-09-29 08:56:43 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK pinheadmz, hodlinator

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36379 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36379.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36379#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [pinheadmz](https://github.com/bitcoin/bitcoin/pull/36379#pullrequestreview-5525006754), [hodlinator](https://github.com/bitcoin/bitcoin/pull/36379#pullrequestreview-5529928146) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
maflcko (Migrated from github.com) reviewed 2026-09-29 09:06:35 +00:00
maflcko (Migrated from github.com) commented 2026-09-29 09:06:35 +00:00

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.

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.
First-time contributor

Base: f13ae519de94394314cd63a27924b0998ac65d45
Head: 3f7f845cf51c1060ee577f0df8869a4efd5ea033

I found no actionable issues in this static review.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> Base: `f13ae519de94394314cd63a27924b0998ac65d45` Head: `3f7f845cf51c1060ee577f0df8869a4efd5ea033` I found no actionable issues in this static review. [Full review report](<https://review.fish.foo/traces/36379-3f7f845cf51c1060ee577f0df8869a4efd5ea033-780-2.html>)
frankomosh (Migrated from github.com) reviewed 2026-09-29 09:29:26 +00:00
frankomosh (Migrated from github.com) commented 2026-09-29 09:29:26 +00:00

dropping both

dropping both
frankomosh commented 2026-10-10 18:46:00 +00:00 (Migrated from github.com)

cc @pinheadmz

cc @pinheadmz
pinheadmz (Migrated from github.com) reviewed 2026-10-14 05:41:58 +00:00
pinheadmz (Migrated from github.com) commented 2026-10-14 05:41:42 +00:00

A bit more explicit:

  • We don't hand anything back to a worker, it'd be the first time we hand it to a worker
  • There's no workers in the test anyway
                // TryReadRequest() returns empty if the HTTPRemoteClient is still
                // holding on to the request. In this test the request is guaranteed
                // to be incomplete although in production it may a result of
                // a busy worker or a full send buffer.
A bit more explicit: - We don't hand anything *back* to a worker, it'd be the first time we hand it to a worker - There's no workers in the test anyway ```suggestion // TryReadRequest() returns empty if the HTTPRemoteClient is still // holding on to the request. In this test the request is guaranteed // to be incomplete although in production it may a result of // a busy worker or a full send buffer. ```
frankomosh (Migrated from github.com) reviewed 2026-10-14 17:47:02 +00:00
frankomosh (Migrated from github.com) commented 2026-10-14 17:47:02 +00:00

Thanks. Taken

Thanks. Taken
frankomosh (Migrated from github.com) reviewed 2026-10-14 17:48:43 +00:00
frankomosh (Migrated from github.com) commented 2026-10-14 17:48:43 +00:00

Said “incomplete or failed” since this branch could also be reached on a parse error.

Said “incomplete or failed” since this branch could also be reached on a parse error.
pinheadmz (Migrated from github.com) approved these changes 2026-10-14 21:38:11 +00:00
pinheadmz (Migrated from github.com) left a comment

ACK 3f7f845cf5

Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

ACK 3f7f845cf51c1060ee577f0df8869a4efd5ea033
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCAA5FiEE5hdzzW4BBA4vG9eM5+KYS2KJyToFAmrP9jUbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMCwzAAoJEOfimEtiick6KgMP/AwP7aX7ndh6OUIYrls2
jcFc9BgNz5JbRcF4qHZM3L4Gl5qZyp5z3gux+zIw8Ja7ZLNNAI1Iztsul7gQXTLf
zyz0R3knY1ThOaWDn0GwS1InJwVt6mRVXyMVDy28f8YBU92GBRrKaKDXbUOpazMO
70mFCb871buXZ3vsQThrOagOn247xhIoDLYvjYG0ClfwGbpe6MyHyBDG0WKu4GKC
JYgb+WnAqJx5izp7dTymVFrIlinMecR4yyI66xvUX5vweZWRV/qpnnR9UmQy5Q7R
Xa1S5VbOdX0pXT6/ZgozwHG/XbBYN6TlxJaerjV3DLqsj0bmLmm8VVDLG+HqW9YP
numQkg+FCms50lHgyn09WeuLFNZf+LpnBiH1TkgqDY01UdaMRTtKmVNSLNClbW92
ggwggVxpulljzKQUIIg9pihT7R96ny4Z/CFlzpxcNCSbx6gOMy8zV7H4Lr38oXnz
PgarKef5BLsmKbVkv5JZQbzMNzsgAiv8ZU0XW+lI6ZDmVg1uA3HqnAnMugM/rusk
KhZF8EfHEDXH8bgPTlV4x6yTP/+JDgWgsONhUH6FzoWr/TtYEjhpSTdn8eXbk69b
pRDkzRmcTW3b0YbwMrn/DFOvlhzBjTGcAz0wPh+9rq2F1u8AmLds2OxDanLVl6i/
fmHq+rZODNhqSVLk7CYbs8Th
=Y14d
-----END PGP SIGNATURE-----

pinheadmz's public key is on openpgp.org

ACK 3f7f845cf51c1060ee577f0df8869a4efd5ea033 <details><summary>Show Signature</summary> ``` -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 ACK 3f7f845cf51c1060ee577f0df8869a4efd5ea033 -----BEGIN PGP SIGNATURE----- iQJPBAEBCAA5FiEE5hdzzW4BBA4vG9eM5+KYS2KJyToFAmrP9jUbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMCwzAAoJEOfimEtiick6KgMP/AwP7aX7ndh6OUIYrls2 jcFc9BgNz5JbRcF4qHZM3L4Gl5qZyp5z3gux+zIw8Ja7ZLNNAI1Iztsul7gQXTLf zyz0R3knY1ThOaWDn0GwS1InJwVt6mRVXyMVDy28f8YBU92GBRrKaKDXbUOpazMO 70mFCb871buXZ3vsQThrOagOn247xhIoDLYvjYG0ClfwGbpe6MyHyBDG0WKu4GKC JYgb+WnAqJx5izp7dTymVFrIlinMecR4yyI66xvUX5vweZWRV/qpnnR9UmQy5Q7R Xa1S5VbOdX0pXT6/ZgozwHG/XbBYN6TlxJaerjV3DLqsj0bmLmm8VVDLG+HqW9YP numQkg+FCms50lHgyn09WeuLFNZf+LpnBiH1TkgqDY01UdaMRTtKmVNSLNClbW92 ggwggVxpulljzKQUIIg9pihT7R96ny4Z/CFlzpxcNCSbx6gOMy8zV7H4Lr38oXnz PgarKef5BLsmKbVkv5JZQbzMNzsgAiv8ZU0XW+lI6ZDmVg1uA3HqnAnMugM/rusk KhZF8EfHEDXH8bgPTlV4x6yTP/+JDgWgsONhUH6FzoWr/TtYEjhpSTdn8eXbk69b pRDkzRmcTW3b0YbwMrn/DFOvlhzBjTGcAz0wPh+9rq2F1u8AmLds2OxDanLVl6i/ fmHq+rZODNhqSVLk7CYbs8Th =Y14d -----END PGP SIGNATURE----- ``` pinheadmz's public key is [on openpgp.org](https://keys.openpgp.org/vks/v1/by-fingerprint/E61773CD6E01040E2F1BD78CE7E2984B6289C93A) </details>
hodlinator (Migrated from github.com) approved these changes 2026-10-15 08:00:15 +00:00
hodlinator (Migrated from github.com) left a comment
ACK 3f7f845cf51c1060ee577f0df8869a4efd5ea033
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36379
No description provided.