Improve connection handling
commit0f5a27ed5082390f0c905ed26ba84de549682a0f
authorChocobo1 <Chocobo1@users.noreply.github.com>
Thu, 20 Jun 2024 04:13:27 +0000 (20 12:13 +0800)
committersledgehammer999 <hammered999@gmail.com>
Tue, 25 Jun 2024 18:13:18 +0000 (25 21:13 +0300)
treee8efefa3812ee1ae0e8f4203f4a2e6f058304210
parentc2cf898ccdcd624a0720689ce09009e1b63f34de
Improve connection handling

1. Previously unhandled connections will stay in pending state. It won't
be closed until timeout happened. This may lead to wasting system
resources. Now the (over-limit) connection is actively rejected.

2. When out-of-memory occurs here, reject the new connection instead of
throwing exception and crash.

3. Also clean up some unused bits.

PR #20961.
src/base/bittorrent/bencoderesumedatastorage.cpp
src/base/http/connection.cpp
src/base/http/connection.h
src/base/http/server.cpp
src/gui/transferlistfilterswidget.cpp