Commit Graph

685 Commits (236c9292f62135e33f9205c800f686b16f94f804)
 

Author SHA1 Message Date
erdgeist 8bdc0d73f6 Make opentracker ANSI C again. 16 years ago
erdgeist 2df09905f5 * opentracker now drops permissions in correct order and really chroots() if ran as root
* lock passing between add_peer_to_torrent and return_peers_for_torrent is now avoided by providing a more general add_peer_to_torrent_and_return_peers function that can be used with NULL parameters to not return any peers (in sync case)
* in order to keep a fast overview how many torrents opentracker maintains, every mutex_bucket_unlock operation expects an additional integer parameter that tells ot_mutex.c how many torrents have been added or removed. A function mutex_get_torrent_count has been introduced.
16 years ago
erdgeist 548e2b8338 Introduce new flag WANT_SYNC_SCRAPE 16 years ago
erdgeist 20257202af Fix incorrect prototype for accesslist_deinit 16 years ago
erdgeist 38c073e6dd minor white space 16 years ago
erdgeist 5c99e50e25 minoe white space 16 years ago
erdgeist 3ee8991200 Fix badly formed bencoded answer to stopped events 16 years ago
erdgeist 3df5e476d0 Fix: Did not time stamp a torrent correctly, that once timed out and came back to life 16 years ago
erdgeist 6d4845149c Propose a scrape sync protocol. 16 years ago
erdgeist a9ab9b0c0d Make all torrents in their buckets sorted again. 16 years ago
erdgeist bca8bee623 Fix: auto increment in += is not a post increment... 16 years ago
erdgeist 5f5007883e Fix post increase on wrong pointer type. 16 years ago
erdgeist 5a0146f810 Used wrong variable as offset into hash to copy 16 years ago
erdgeist c6947b160f Handle program end more politely 16 years ago
erdgeist ad8c9ee1ef Avoid cast warning on 64bit machines 16 years ago
erdgeist 08c7162783 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
16 years ago
erdgeist a4ed31d517 Format for full scrapes was not parsed correctly. 16 years ago
erdgeist 256f2c6f98 Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT 16 years ago
erdgeist 258cae746f Forgot one define READ32 16 years ago
erdgeist 5fb58458f6 Tidy up unnecessary includes 16 years ago
erdgeist 08d9c342d4 Add specialized vector functions to handle peers in sorted lists
Assume that compare_size is a mulptiple of 4 in all non-specialized cases and load int32_t to compare.
16 years ago
erdgeist 23be5c4d55 Let's give a damn about syntactical correctness of peer's http strings. It's too expensive on both sides to check and to reject. 16 years ago
erdgeist 7120799379 Now enforce that peers do not come back before our interval by giving out a 'min interval' in responses. 16 years ago
erdgeist 405ef01dd3 printf is buffered, write not. Use printf for all. 16 years ago
erdgeist 76da780220 fix size of 0 issue 16 years ago
erdgeist eda3ae7f91 Add debug code to spot peers that come back too early 16 years ago
erdgeist 2c7c10138b Add debug code to store peer id 16 years ago
erdgeist e2199cc504 New peer flag to see, whether peer came from announce or sync 16 years ago
erdgeist 0523b429ae Aid spotting bad clients... 16 years ago
denis bfbb5ecb44 stats fuer sync 16 years ago
erdgeist 566e8267e1 Live Sync for peers that do not come back too early. 16 years ago
erdgeist 334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 16 years ago
erdgeist ff6c0339c1 Bugfix: Number of Pools << Number of Buckets 16 years ago
erdgeist 272abf8430 Try to use much less memory and hope for speedups 16 years ago
erdgeist 18b6e9b212 Spread the amount of time spent in cleanup about 2 minutes 16 years ago
erdgeist 9c0b23e28d Add stats about when peers renew their announces. 16 years ago
erdgeist 3f5468672b Never let vectors shrink below their minimal capacity 16 years ago
erdgeist 933f8d9b52 Formatting 16 years ago
erdgeist bb1c5d2805 Add stats about when peers renew their announces. 16 years ago
erdgeist daaee855b2 Whitespace fixes 16 years ago
denis 55d03b9a1b fixed typo 16 years ago
erdgeist 39ed6a058b Fix stats parse code to allow modes with more than 4 characters. Wir wurden ja langsam zum Gespoett der Leute. 16 years ago
erdgeist 511a92e321 First vector has size 1, not 0 in debug vector 16 years ago
erdgeist 529919ac83 Fix: blacklist and whitelist config option parsing code was the wrong way 16 years ago
erdgeist c7bc370b27 Document WANT_RESTRICT_STATS in sample config file 16 years ago
erdgeist 06b503a11f Enable stats restricting config file option 16 years ago
erdgeist 80fd4dc738 Tidy up stats task. 16 years ago
erdgeist e89a8aaf58 Move more complicated stats code to its own thread 16 years ago
erdgeist 97980de3d9 Introduce vector debuggin code and stats restriction options 16 years ago
erdgeist cbd39af72d Add code to debug vector code performance. 16 years ago