1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-11 06:32:59 +00:00
transmission/libtransmission
Yat Ho 21d7720749
refactor: improve criteria for choosing peers to save to resume (#6922)
* fix: only consider peers with listening ports interesting

It's a waste of space to store peers we cannot connect to (because we don't know what their listening port is).

* fix: don't consider peer as interesting just because we are currently connected to it

For example, it's possible for a peer to be "in-use" and "banned" at the same time, albeit just for a very short while.

* code review: assert that peer port is not empty
2024-10-13 13:48:49 -05:00
..
.clang-tidy
announce-list.cc
announce-list.h
announcer-common.h feat: dual stack udp tracker support (#6687) 2024-05-26 15:43:55 -05:00
announcer-http.cc
announcer-udp.cc refactor: simplify addrinfo unique_ptr definition (#7060) 2024-08-13 11:12:02 +01:00
announcer.cc
announcer.h
bandwidth.cc
bandwidth.h
benc.h
bitfield.cc
bitfield.h
block-info.cc
block-info.h
blocklist.cc
blocklist.h
cache.cc
cache.h
clients.cc
clients.h
CMakeLists.txt
completion.cc
completion.h
crypto-utils-ccrypto.cc
crypto-utils-fallback.cc
crypto-utils-mbedtls.cc
crypto-utils-openssl.cc
crypto-utils-wolfssl.cc
crypto-utils.cc
crypto-utils.h
error-types.h
error.cc
error.h
favicon-cache.h
file-capacity.cc Add CI configuration for clang-tidy on Windows (#6997) 2024-07-16 22:13:29 +01:00
file-piece-map.cc
file-piece-map.h
file-posix.cc
file-win32.cc
file.cc
file.h
handshake.cc
handshake.h
history.h
inout.cc
inout.h
interned-string.h
ip-cache.cc
ip-cache.h
libt.dox
log.cc
log.h
lru-cache.h
magnet-metainfo.cc
magnet-metainfo.h
makemeta.cc
makemeta.h
mime-types.h
mime-types.js
net.cc
net.h
observable.h
open-files.cc
open-files.h
peer-common.h
peer-io.cc
peer-io.h
peer-mgr-active-requests.cc Add CI configuration for clang-tidy on Windows (#6997) 2024-07-16 22:13:29 +01:00
peer-mgr-active-requests.h
peer-mgr-wishlist.cc
peer-mgr-wishlist.h
peer-mgr.cc
peer-mgr.h
peer-mse.cc perf: lazy initialise Diffie-Hellman in handshake (#6949) 2024-08-23 16:14:45 -05:00
peer-mse.h
peer-msgs.cc
peer-msgs.h
peer-socket.cc
peer-socket.h
platform.cc
platform.h
port-forwarding-natpmp.cc
port-forwarding-natpmp.h
port-forwarding-upnp.cc
port-forwarding-upnp.h
port-forwarding.cc
port-forwarding.h
quark.cc
quark.h feat: save queue order between sessions (#6753) 2024-10-13 11:36:38 -05:00
resume.cc
resume.h
rpc-server.cc
rpc-server.h
rpcimpl.cc
rpcimpl.h
session-alt-speeds.cc
session-alt-speeds.h
session-id.cc
session-id.h
session-thread.cc
session-thread.h
session.cc
session.h feat: configurable client reqq (#7030) 2024-08-23 21:46:37 -05:00
settings.cc
settings.h
stats.cc
stats.h
subprocess-posix.cc
subprocess-win32.cc
subprocess.h
timer-ev.cc
timer-ev.h
timer.h
torrent-ctor.cc fix: clang-tidy-19 warnings (#6597) 2024-02-13 10:42:19 -06:00
torrent-ctor.h
torrent-files.cc
torrent-files.h
torrent-magnet.cc
torrent-magnet.h
torrent-metainfo.cc
torrent-metainfo.h fix: restore portable file path check (#6853) 2024-05-25 10:08:53 -05:00
torrent.cc
torrent.h
torrents.cc
torrents.h
tr-arc4.h
tr-assert.cc
tr-assert.h
tr-buffer.h
tr-dht.cc
tr-dht.h
tr-getopt.cc
tr-getopt.h
tr-lpd.cc
tr-lpd.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
tr-macros.h
tr-popcount.h
tr-strbuf.h
tr-udp.cc
tr-utp.cc
tr-utp.h
transmission.h
utils-ev.cc
utils-ev.h
utils.cc
utils.h
utils.mm
values.h
variant-benc.cc
variant-json.cc
variant.cc
variant.h
verify.cc
verify.h
version.h.in
watchdir-base.h
watchdir-generic.cc
watchdir-inotify.cc
watchdir-kqueue.cc
watchdir-win32.cc
watchdir.cc
watchdir.h
web-utils.cc
web-utils.h
web.cc
web.h
webseed.cc
webseed.h