Skip to content

doc: update http worker thread names#34769

Merged
sedited merged 1 commit intobitcoin:masterfrom
rkrux:http-threads-doc
Mar 10, 2026
Merged

doc: update http worker thread names#34769
sedited merged 1 commit intobitcoin:masterfrom
rkrux:http-threads-doc

Conversation

@rkrux
Copy link
Contributor

@rkrux rkrux commented Mar 7, 2026

After using Threadpool for HTTP server in PR 33689, the previously
documented HTTP worker thread names are outdated. This commit makes
the corresponding changes to document new names for the HTTP worker
threads. Below is the output from the thead list command after
attaching lldb to bitcoind.

thread #3: tid = 0xfe551, 0x00007ff80e3536f6 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'b-http_pool_0'
thread #4: tid = 0xfe552, 0x00007ff80e3536f6 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'b-http_pool_1'

@DrahtBot DrahtBot added the Docs label Mar 7, 2026
@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 7, 2026

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK l0rinc, hebasto, theStack, furszy, sedited

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

@l0rinc
Copy link
Contributor

l0rinc commented Mar 7, 2026

I think it should stay worker threads, and if we're touching this, we could fix the b-mapport and b-net entries as well.

@rkrux
Copy link
Contributor Author

rkrux commented Mar 7, 2026

and if we're touching this, we could fix the b-mapport and b-net entries as well.

Do you mean updating their Doxygen links?

After using `Threadpool` for HTTP server in PR 33689, the previously
documented HTTP worker thread names are outdated. This commit makes
the corresponding changes to document new names for the HTTP worker
threads. Below is the output from the `thead list` command after
attaching `lldb` to `bitcoind`.

```zsh
thread bitcoin#3: tid = 0xfe551, 0x00007ff80e3536f6 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'b-http_pool_0'
thread bitcoin#4: tid = 0xfe552, 0x00007ff80e3536f6 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'b-http_pool_1'
```
@rkrux rkrux force-pushed the http-threads-doc branch from f5c7503 to 46189fd Compare March 10, 2026 07:26
@rkrux rkrux changed the title doc: update http pool thread names doc: update http worker thread names Mar 10, 2026
@fanquake
Copy link
Member

cc @furszy

@l0rinc
Copy link
Contributor

l0rinc commented Mar 10, 2026

ACK 46189fd

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 46189fd.

: Libevent thread to listen for RPC and REST connections.

- [HTTP worker threads(`b-httpworker.x`)](https://doxygen.bitcoincore.org/httpserver_8cpp.html#aa6a7bc27265043bc0193220c5ae3a55f)
- [HTTP worker threads (`b-http_pool_x`)](https://doxygen.bitcoincore.org/httpserver_8cpp.html#a2ad0a49dc9b5e8117c0dee98c24187d8)
Copy link
Member

@hebasto hebasto Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This corresponds with

m_workers.emplace_back(&util::TraceThread, strprintf("%s_pool_%d", m_name, i), [this] { WorkerThread(); });

@fanquake fanquake added this to the 31.0 milestone Mar 10, 2026
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 46189fd

Copy link
Member

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 46189fd

Copy link
Contributor

@sedited sedited left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 46189fd

@sedited sedited merged commit 951863d into bitcoin:master Mar 10, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants