1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-12 16:00:06 +00:00
Commit Graph

618 Commits

Author SHA1 Message Date
erdgeist
256f2c6f98 Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT 2008-12-06 00:41:12 +00:00
erdgeist
258cae746f Forgot one define READ32 2008-12-06 00:40:36 +00:00
erdgeist
5fb58458f6 Tidy up unnecessary includes 2008-12-05 21:28:40 +00:00
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.
2008-12-05 20:36:00 +00:00
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. 2008-12-05 20:34:24 +00:00
erdgeist
7120799379 Now enforce that peers do not come back before our interval by giving out a 'min interval' in responses. 2008-12-03 23:25:45 +00:00
erdgeist
405ef01dd3 printf is buffered, write not. Use printf for all. 2008-12-03 20:49:52 +00:00
erdgeist
76da780220 fix size of 0 issue 2008-12-03 20:49:25 +00:00
erdgeist
eda3ae7f91 Add debug code to spot peers that come back too early 2008-12-03 20:40:50 +00:00
erdgeist
2c7c10138b Add debug code to store peer id 2008-12-03 20:40:25 +00:00
erdgeist
e2199cc504 New peer flag to see, whether peer came from announce or sync 2008-12-03 20:39:23 +00:00
erdgeist
0523b429ae Aid spotting bad clients... 2008-12-03 20:38:25 +00:00
denis
bfbb5ecb44 stats fuer sync 2008-12-03 20:36:16 +00:00
erdgeist
566e8267e1 Live Sync for peers that do not come back too early. 2008-12-01 17:56:53 +00:00
erdgeist
334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 2008-11-28 22:21:10 +00:00
erdgeist
ff6c0339c1 Bugfix: Number of Pools << Number of Buckets 2008-11-03 10:34:54 +00:00
erdgeist
272abf8430 Try to use much less memory and hope for speedups 2008-11-03 01:52:51 +00:00
erdgeist
18b6e9b212 Spread the amount of time spent in cleanup about 2 minutes 2008-11-03 01:52:23 +00:00
erdgeist
9c0b23e28d Add stats about when peers renew their announces. 2008-11-03 01:52:02 +00:00
erdgeist
3f5468672b Never let vectors shrink below their minimal capacity 2008-11-03 01:28:10 +00:00
erdgeist
933f8d9b52 Formatting 2008-11-03 01:27:03 +00:00
erdgeist
bb1c5d2805 Add stats about when peers renew their announces. 2008-11-03 01:26:38 +00:00
erdgeist
daaee855b2 Whitespace fixes 2008-10-28 01:27:22 +00:00
denis
55d03b9a1b fixed typo 2008-10-28 00:30:08 +00:00
erdgeist
39ed6a058b Fix stats parse code to allow modes with more than 4 characters. Wir wurden ja langsam zum Gespoett der Leute. 2008-10-28 00:24:14 +00:00
erdgeist
511a92e321 First vector has size 1, not 0 in debug vector 2008-10-28 00:23:32 +00:00
erdgeist
529919ac83 Fix: blacklist and whitelist config option parsing code was the wrong way 2008-10-26 12:01:58 +00:00
erdgeist
c7bc370b27 Document WANT_RESTRICT_STATS in sample config file 2008-10-24 00:06:35 +00:00
erdgeist
06b503a11f Enable stats restricting config file option 2008-10-24 00:04:02 +00:00
erdgeist
80fd4dc738 Tidy up stats task. 2008-10-24 00:03:18 +00:00
erdgeist
e89a8aaf58 Move more complicated stats code to its own thread 2008-10-24 00:01:42 +00:00
erdgeist
97980de3d9 Introduce vector debuggin code and stats restriction options 2008-10-24 00:00:55 +00:00
erdgeist
cbd39af72d Add code to debug vector code performance. 2008-10-23 23:58:18 +00:00
denis
41a1d2d025 fixed the length 2008-10-22 21:28:00 +00:00
erdgeist
4b31dce3b3 release pools only after all other services have been stopped. 2008-10-17 15:21:47 +00:00
erdgeist
f4283be677 Fix debug output for addresses >127 2008-10-17 15:21:11 +00:00
erdgeist
0deb06d544 Reverting last commit. Debug effect not seen. 2008-10-07 23:53:29 +00:00
erdgeist
0f271421c3 Add config option for naming threads 2008-10-07 23:45:26 +00:00
erdgeist
ec0affa97d allow threads to be named. not posix compliant. 2008-10-07 23:44:59 +00:00
denis
1c3c5d57da only sync when the peer is actually added to the first pool. this saves ca. 40% syncdata 2008-10-07 02:09:38 +00:00
erdgeist
719858548d Bugfix: API change missed in two points, when calling return_peers_for_torrent. is_tcp was replaced by FLAG_TCP or FLAG_UDP 2008-10-06 20:18:42 +00:00
erdgeist
0dafc2ab26 Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped 2008-10-06 19:43:52 +00:00
erdgeist
fae73214af A new config file option to connect to tcp and udp at once has been added. Also some clarifications have been put into the sample config file. 2008-10-06 11:42:03 +00:00
erdgeist
07dbc87986 Futher clean up config file documentation 2008-10-06 03:59:25 +00:00
erdgeist
b12077ad3a Add some explanations about the implicite :6969 and the ancient tracker sync format 2008-10-06 03:46:42 +00:00
erdgeist
bca01f4cde document the new config file feature. 2008-10-06 03:42:51 +00:00
erdgeist
206c74ee2f Make ot_try_bind local again. 2008-10-06 02:06:23 +00:00
erdgeist
465cc2ecdf Live sync is now handled in its own thread. Therefore it now creates and handles its own sockets. 2008-10-06 02:05:53 +00:00
erdgeist
17724dde29 Make ot_try_bind local again. Also dont handle multi cast udp packets in opentracker.c, ot_livesync.c does it by itself. 2008-10-06 02:03:08 +00:00
erdgeist
01ea1648d8 Cosmetics 2008-10-06 02:02:12 +00:00