Commit Graph

559 Commits (648222e47864bc4bf7a5dec71e72bdfef8eb4b7c)

Author SHA1 Message Date
Dirk Engling b8d15fe766 Add debug code to store peer id 2008-12-03 20:40:25 +00:00
Dirk Engling a6afcf8ab8 New peer flag to see, whether peer came from announce or sync 2008-12-03 20:39:23 +00:00
Dirk Engling 384028829b Aid spotting bad clients... 2008-12-03 20:38:25 +00:00
Denis Ahrens 8614b83456 stats fuer sync 2008-12-03 20:36:16 +00:00
Dirk Engling dcf8454138 Live Sync for peers that do not come back too early. 2008-12-01 17:56:53 +00:00
Dirk Engling c0dab929ab 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:09 +00:00
Dirk Engling 90217a63e5 Bugfix: Number of Pools << Number of Buckets 2008-11-03 10:34:54 +00:00
Dirk Engling ca82945307 Try to use much less memory and hope for speedups 2008-11-03 01:52:51 +00:00
Dirk Engling 19dcaa82f5 Spread the amount of time spent in cleanup about 2 minutes 2008-11-03 01:52:23 +00:00
Dirk Engling 9384f6494b Add stats about when peers renew their announces. 2008-11-03 01:52:02 +00:00
Dirk Engling 18d338ce40 Never let vectors shrink below their minimal capacity 2008-11-03 01:28:10 +00:00
Dirk Engling 49c5139acf Formatting 2008-11-03 01:27:03 +00:00
Dirk Engling c8daa7bf86 Add stats about when peers renew their announces. 2008-11-03 01:26:37 +00:00
Dirk Engling 7dcd727ce6 Whitespace fixes 2008-10-28 01:27:21 +00:00
Denis Ahrens 32477fb1ba fixed typo 2008-10-28 00:30:08 +00:00
Dirk Engling 71b2ffcaa6 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
Dirk Engling 022f3e7455 First vector has size 1, not 0 in debug vector 2008-10-28 00:23:32 +00:00
Dirk Engling 02a10e8849 Fix: blacklist and whitelist config option parsing code was the wrong way 2008-10-26 12:01:58 +00:00
Dirk Engling b3d596c243 Document WANT_RESTRICT_STATS in sample config file 2008-10-24 00:06:35 +00:00
Dirk Engling 53ce461698 Enable stats restricting config file option 2008-10-24 00:04:02 +00:00
Dirk Engling 6e77c03281 Tidy up stats task. 2008-10-24 00:03:18 +00:00
Dirk Engling 55cc5df1b7 Move more complicated stats code to its own thread 2008-10-24 00:01:42 +00:00
Dirk Engling ee330be078 Introduce vector debuggin code and stats restriction options 2008-10-24 00:00:55 +00:00
Dirk Engling 55632a2dca Add code to debug vector code performance. 2008-10-23 23:58:18 +00:00
Denis Ahrens 71bffcabab fixed the length 2008-10-22 21:28:00 +00:00
Dirk Engling 7a180be215 release pools only after all other services have been stopped. 2008-10-17 15:21:47 +00:00
Dirk Engling 344067166c Fix debug output for addresses >127 2008-10-17 15:21:11 +00:00
Dirk Engling 14f0a3ceea Reverting last commit. Debug effect not seen. 2008-10-07 23:53:29 +00:00
Dirk Engling aa7f40b77c Add config option for naming threads 2008-10-07 23:45:26 +00:00
Dirk Engling ad7c574c0e allow threads to be named. not posix compliant. 2008-10-07 23:44:59 +00:00
Denis Ahrens 779df22409 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
Dirk Engling e88a799172 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
Dirk Engling 3e0cec3269 Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped 2008-10-06 19:43:52 +00:00
Dirk Engling a564fd4b0c 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
Dirk Engling 2b6ce1a704 Futher clean up config file documentation 2008-10-06 03:59:25 +00:00
Dirk Engling 025536fa11 Add some explanations about the implicite :6969 and the ancient tracker sync format 2008-10-06 03:46:42 +00:00
Dirk Engling a5b6909757 document the new config file feature. 2008-10-06 03:42:51 +00:00
Dirk Engling 5f7e2dafaa Make ot_try_bind local again. 2008-10-06 02:06:23 +00:00
Dirk Engling 0ded14be37 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
Dirk Engling 0903ac4387 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
Dirk Engling 303e08e7c1 Cosmetics 2008-10-06 02:02:12 +00:00
Dirk Engling 499f07b3f0 Add _DEBUG flag for debug builds. This flag enables some diagnostic messages. 2008-10-05 12:31:14 +00:00
Dirk Engling 54da7d4257 Make scan_ip4_port API more sane, add debug output, be less tolerant when syntax checking command line options 2008-10-05 12:30:06 +00:00
Dirk Engling 3abbbe9d78 Enabled debug output, fixed blessed ip permissions 2008-10-05 12:28:57 +00:00
Dirk Engling 847ce85ae6 white space in comment 2008-10-05 12:28:12 +00:00
Dirk Engling e076dab883 added live sync code
added a config file parser
added tracker id
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:48 +00:00
Dirk Engling 76416b5c1c Cleaning up Build time options. Also add ot_livesync.[ch] 2008-10-03 21:35:03 +00:00
Dirk Engling de7ee67519 Live syncing between multiple tracker instances via udp multicast. 2008-10-03 21:33:53 +00:00
Dirk Engling aded7ebc09 Refine config syntax. Testing code... 2008-10-03 18:30:28 +00:00
Dirk Engling b93f563d1a Add a config file framework to opentracker 2008-09-23 22:59:54 +00:00