diff options
author | stickies-v <stickies-v@protonmail.com> | 2023-09-29 15:24:03 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2023-10-03 13:34:15 +0100 |
commit | 41f9027813f849a9fd6a1479bbb74b9037990c3c (patch) | |
tree | b8007419817aff2b1d49ffd883afc46beb9086bc /src/uint256.h | |
parent | 9d5150ac47a2e8db0f23a2f04211fec3516afbe1 (diff) |
http: refactor: use encapsulated HTTPRequestTracker
Introduces and uses a HTTPRequestTracker class to keep track of
how many HTTP requests are currently active, so we don't stop the
server before they're all handled.
This has two purposes:
1. In a next commit, allows us to untrack all requests associated
with a connection without running into lifetime issues of the
connection living longer than the request
(see https://github.com/bitcoin/bitcoin/pull/27909#discussion_r1265614783)
2. Improve encapsulation by making the mutex and cv internal members,
and exposing just the WaitUntilEmpty() method that can be safely
used.
Diffstat (limited to 'src/uint256.h')
0 files changed, 0 insertions, 0 deletions