aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2023-09-29 15:24:03 +0100
committerstickies-v <stickies-v@protonmail.com>2023-10-03 13:34:15 +0100
commit41f9027813f849a9fd6a1479bbb74b9037990c3c (patch)
treeb8007419817aff2b1d49ffd883afc46beb9086bc /src/uint256.h
parent9d5150ac47a2e8db0f23a2f04211fec3516afbe1 (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