toxcore/other
jfreegman 0f3534656f
Improve how we share TCP relays with friends
Previously we would try to send three random TCP relays that we're
connected to to each friend once every 5 minutes. The problem with
this method is that it could take an extraordinarily long time
to share every relay; some relays might be consistently skipped
while others might be sent repeatedly. Moreover, there's no
guarantee that the nodes you try to send are actually online.
This leads to a prety unreliable and flaky way of sharing.

Now we reduce the timer to two minutes, and cycle through the list
trying 3 nodes each share attempt. This guarantees that every online
node in our list gets shared with every friend after a fixed amount of
time (which depends on how many nodes are in the list)
2022-02-17 16:16:29 -05:00
..
analysis refactor: Compare pointers in if conditions to nullptr. 2022-02-17 19:55:29 +00:00
astyle fix: Fix some uninitialised memory errors found by valgrind and msan. 2022-01-13 20:15:21 +00:00
bootstrap_daemon Improve how we share TCP relays with friends 2022-02-17 16:16:29 -05:00
docker cleanup: Avoid implicit pointer-to-bool conversion in if in toxav. 2022-02-17 20:33:24 +00:00
emscripten feat: Add binary packing functions for tox events. 2022-02-07 02:43:24 +00:00
fun perf: Reduce minimal encoding size of packed events. 2022-02-12 17:44:44 +00:00
pkgconfig update rpm spec and use variables in cmake instead of hardcoded paths (#624) 2018-01-15 14:23:33 +03:00
rpm Use the markdown GPLv3 license in the c-toxcore repo. 2018-02-08 16:08:09 +00:00
bootstrap_node_packets.c Make functions take const pointer to IP_Port wherever possible 2022-02-03 10:54:48 -05:00
bootstrap_node_packets.h cleanup: Remove uses of strcpy and sprintf. 2022-01-17 18:25:40 +00:00
BUILD.bazel perf: Reduce minimal encoding size of packed events. 2022-02-12 17:44:44 +00:00
cpufeatures.c Add a check that we don't have any unused functions. 2020-05-02 22:00:09 +01:00
DHT_bootstrap.c cleanup: Make LAN discovery thread-safe without data races. 2022-02-06 19:56:34 +00:00
DHTnodes Link changes. 2015-07-07 22:57:11 -04:00
make_single_file feat: Add async event handling (callbacks) code. 2022-02-06 17:28:28 +00:00
Makefile.inc Avoid implementations in .h files or #including .c files. 2018-07-21 20:44:26 +00:00
osx_build_script_toxcore.sh Move OS X install script 2015-02-03 12:48:15 -05:00
print-version chore: Add bootstrap daemon docker image build. 2021-12-23 15:54:24 +00:00
tox-warning.png [ImgBot] Optimize images 2020-04-24 21:55:23 +00:00
tox.png [ImgBot] Optimize images 2020-04-24 21:55:23 +00:00
version-sync Bump toxcore version to 0.2.0. 2018-01-08 19:36:00 +00:00
windows_build_script_toxcore.sh Update deps used in Windows build scripts 2021-02-25 13:59:18 +03:00