Commit Graph

420 Commits (08c71627839a9134367db354c8255f7a720e1ff3)
 

Author SHA1 Message Date
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
erdgeist a4ed31d517 Format for full scrapes was not parsed correctly.
erdgeist 256f2c6f98 Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT
erdgeist 258cae746f Forgot one define READ32
erdgeist 5fb58458f6 Tidy up unnecessary includes
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.
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.
erdgeist 7120799379 Now enforce that peers do not come back before our interval by giving out a 'min interval' in responses.
erdgeist 405ef01dd3 printf is buffered, write not. Use printf for all.
erdgeist 76da780220 fix size of 0 issue
erdgeist eda3ae7f91 Add debug code to spot peers that come back too early
erdgeist 2c7c10138b Add debug code to store peer id
erdgeist e2199cc504 New peer flag to see, whether peer came from announce or sync
erdgeist 0523b429ae Aid spotting bad clients...
denis bfbb5ecb44 stats fuer sync
erdgeist 566e8267e1 Live Sync for peers that do not come back too early.
erdgeist 334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
erdgeist ff6c0339c1 Bugfix: Number of Pools << Number of Buckets
erdgeist 272abf8430 Try to use much less memory and hope for speedups
erdgeist 18b6e9b212 Spread the amount of time spent in cleanup about 2 minutes
erdgeist 9c0b23e28d Add stats about when peers renew their announces.
erdgeist 3f5468672b Never let vectors shrink below their minimal capacity
erdgeist 933f8d9b52 Formatting
erdgeist bb1c5d2805 Add stats about when peers renew their announces.
erdgeist daaee855b2 Whitespace fixes
denis 55d03b9a1b fixed typo
erdgeist 39ed6a058b Fix stats parse code to allow modes with more than 4 characters. Wir wurden ja langsam zum Gespoett der Leute.
erdgeist 511a92e321 First vector has size 1, not 0 in debug vector
erdgeist 529919ac83 Fix: blacklist and whitelist config option parsing code was the wrong way
erdgeist c7bc370b27 Document WANT_RESTRICT_STATS in sample config file
erdgeist 06b503a11f Enable stats restricting config file option
erdgeist 80fd4dc738 Tidy up stats task.
erdgeist e89a8aaf58 Move more complicated stats code to its own thread
erdgeist 97980de3d9 Introduce vector debuggin code and stats restriction options
erdgeist cbd39af72d Add code to debug vector code performance.
denis 41a1d2d025 fixed the length
erdgeist 4b31dce3b3 release pools only after all other services have been stopped.
erdgeist f4283be677 Fix debug output for addresses >127
erdgeist 0deb06d544 Reverting last commit. Debug effect not seen.
erdgeist 0f271421c3 Add config option for naming threads
erdgeist ec0affa97d allow threads to be named. not posix compliant.
denis 1c3c5d57da only sync when the peer is actually added to the first pool. this saves ca. 40% syncdata
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
erdgeist 0dafc2ab26 Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped
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.
erdgeist 07dbc87986 Futher clean up config file documentation
erdgeist b12077ad3a Add some explanations about the implicite :6969 and the ancient tracker sync format
erdgeist bca01f4cde document the new config file feature.
erdgeist 206c74ee2f Make ot_try_bind local again.
erdgeist 465cc2ecdf Live sync is now handled in its own thread. Therefore it now creates and handles its own sockets.