Commit Graph

421 Commits (675dad9b3a59a2ca7f1db30df646f8e9bbe3f5fa)
 

Author SHA1 Message Date
Dirk Engling 675dad9b3a Avoid cast warning on 64bit machines 15 years ago
Dirk Engling fa6c870315 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
15 years ago
Dirk Engling 95b6c3b498 Format for full scrapes was not parsed correctly. 15 years ago
Dirk Engling cec9b44738 Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT 15 years ago
Dirk Engling d46a8a5d06 Forgot one define READ32 15 years ago
Dirk Engling 545dab2c18 Tidy up unnecessary includes 15 years ago
Dirk Engling 55af66acb2 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.
15 years ago
Dirk Engling efe40b2726 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. 15 years ago
Dirk Engling d5caa5786b Now enforce that peers do not come back before our interval by giving out a 'min interval' in responses. 15 years ago
Dirk Engling d021d86940 printf is buffered, write not. Use printf for all. 15 years ago
Dirk Engling 69f4646df3 fix size of 0 issue 15 years ago
Dirk Engling 7eb5341c78 Add debug code to spot peers that come back too early 15 years ago
Dirk Engling b8d15fe766 Add debug code to store peer id 15 years ago
Dirk Engling a6afcf8ab8 New peer flag to see, whether peer came from announce or sync 15 years ago
Dirk Engling 384028829b Aid spotting bad clients... 15 years ago
Denis Ahrens 8614b83456 stats fuer sync 15 years ago
Dirk Engling dcf8454138 Live Sync for peers that do not come back too early. 15 years ago
Dirk Engling c0dab929ab The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 15 years ago
Dirk Engling 90217a63e5 Bugfix: Number of Pools << Number of Buckets 15 years ago
Dirk Engling ca82945307 Try to use much less memory and hope for speedups 15 years ago
Dirk Engling 19dcaa82f5 Spread the amount of time spent in cleanup about 2 minutes 15 years ago
Dirk Engling 9384f6494b Add stats about when peers renew their announces. 15 years ago
Dirk Engling 18d338ce40 Never let vectors shrink below their minimal capacity 15 years ago
Dirk Engling 49c5139acf Formatting 15 years ago
Dirk Engling c8daa7bf86 Add stats about when peers renew their announces. 15 years ago
Dirk Engling 7dcd727ce6 Whitespace fixes 15 years ago
Denis Ahrens 32477fb1ba fixed typo 15 years ago
Dirk Engling 71b2ffcaa6 Fix stats parse code to allow modes with more than 4 characters. Wir wurden ja langsam zum Gespoett der Leute. 15 years ago
Dirk Engling 022f3e7455 First vector has size 1, not 0 in debug vector 15 years ago
Dirk Engling 02a10e8849 Fix: blacklist and whitelist config option parsing code was the wrong way 15 years ago
Dirk Engling b3d596c243 Document WANT_RESTRICT_STATS in sample config file 15 years ago
Dirk Engling 53ce461698 Enable stats restricting config file option 15 years ago
Dirk Engling 6e77c03281 Tidy up stats task. 15 years ago
Dirk Engling 55cc5df1b7 Move more complicated stats code to its own thread 15 years ago
Dirk Engling ee330be078 Introduce vector debuggin code and stats restriction options 15 years ago
Dirk Engling 55632a2dca Add code to debug vector code performance. 15 years ago
Denis Ahrens 71bffcabab fixed the length 15 years ago
Dirk Engling 7a180be215 release pools only after all other services have been stopped. 15 years ago
Dirk Engling 344067166c Fix debug output for addresses >127 15 years ago
Dirk Engling 14f0a3ceea Reverting last commit. Debug effect not seen. 15 years ago
Dirk Engling aa7f40b77c Add config option for naming threads 15 years ago
Dirk Engling ad7c574c0e allow threads to be named. not posix compliant. 15 years ago
Denis Ahrens 779df22409 only sync when the peer is actually added to the first pool. this saves ca. 40% syncdata 15 years ago
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 15 years ago
Dirk Engling 3e0cec3269 Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped 15 years ago
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. 15 years ago
Dirk Engling 2b6ce1a704 Futher clean up config file documentation 15 years ago
Dirk Engling 025536fa11 Add some explanations about the implicite :6969 and the ancient tracker sync format 15 years ago
Dirk Engling a5b6909757 document the new config file feature. 15 years ago
Dirk Engling 5f7e2dafaa Make ot_try_bind local again. 15 years ago