diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-11-09 12:25:44 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-12-31 02:29:21 +0100 |
commit | 13a9f08de18dea0dfc1951992b0ddeda9c2fa2dd (patch) | |
tree | 8ad39c2360ffe9cc7fee09baba04fa6fe3033dbd /methods/connect.cc | |
parent | cfc11b2e1d8480727208b9d3e9577172de9a4038 (diff) |
separating state variables regarding server/request
Having a Reset(bool) method to partially reset certain variables like
the download size always were strange, so this commit splits the
ServerState into an additional RequestState living on the stack for as
long as we deal with this request causing an automatic "reset".
There is much to do still to make this code look better, but this is a
good first step which compiles cleanly and passes all tests, so keeping
it as history might be beneficial and due to avoiding explicit memory
allocations it ends up fixing a small memory leak in https, too.
Closes: #440057
Diffstat (limited to 'methods/connect.cc')
0 files changed, 0 insertions, 0 deletions