summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DESIGN7
1 files changed, 7 insertions, 0 deletions
diff --git a/DESIGN b/DESIGN
index eb5d1e1..323a753 100644
--- a/DESIGN
+++ b/DESIGN
@@ -93,6 +93,13 @@ way, 3089 of them refused over 373 ms against a two million entry whitelist.
93The first read is therefore synchronous in accesslist_init, and the thread 93The first read is therefore synchronous in accesslist_init, and the thread
94only handles reloads. 94only handles reloads.
95 95
96Nothing that adds a peer starts before the state file has been read. That is
97the TCP and UDP listeners and live sync, so main starts all three after
98load_state rather than leaving live sync inside trackerlogic_init. A cluster
99packet arriving in that window created the torrent, and the saved state for it
100was then dropped on the exactmatch add_torrent_from_saved_state bails on,
101losing that torrent's completed count.
102
96Teardown stops the cleaner first. It is the one worker that calls into other 103Teardown stops the cleaner first. It is the one worker that calls into other
97modules, accesslist_cleanup and stats_cleanup, so stopping it after them left 104modules, accesslist_cleanup and stats_cleanup, so stopping it after them left
98it locking a mutex accesslist_deinit had already destroyed: five shutdowns in 105it locking a mutex accesslist_deinit had already destroyed: five shutdowns in