91 Commits (524d78d6c7552cd4c44be7cea1ccc7cdbb11b490)

Author SHA1 Message Date
Dirk Engling 524d78d6c7 constify 8 months ago
Dirk Engling 2afc4893bf Prepare opentracker for dual stack capabilities 8 months ago
Dirk Engling eb8834f778 Move further towards dual stack capable opentracker, name more constants 8 months ago
Dirk Engling 73e839f5ff Tidy up v6 handler 8 months ago
Dirk Engling 5b98dcf3a3 Limit ipv6 udp replies to an amount that does not create too large UDP packets. Credits to anonymous donor 8 months ago
Dirk Engling be825f5759 Add support for dynamic accesslists 2 years ago
Dirk Engling b73b3b17cc Use arc4random whereever we need strong entropy 4 years ago
Dirk Engling 616119ee22 Turn random() to nrand48 in inner loop where it is not cryptographically relevant to avoid futex storm. Thanks and credits to Bart Smienk 4 years ago
Dirk Engling d4598cc930 Get rid of some warnings regarding header guards 8 years ago
Dirk Engling fca2b993a9 Increase number of locks to accomodate for more cores on contemporary CPUs 10 years ago
erdgeist d42bf5a031 ** struct ot_workstruct gets ritcher (and will become even ritcher soon). 15 years ago
erdgeist 90e7262d9d Preparing more efficient header parsing 15 years ago
erdgeist 478884660f Enable limiting fullscrapes to only every 5 minutes per IP 15 years ago
erdgeist 6c51fca9a1 Introduce the concept of an ot_net into opentracker. 15 years ago
erdgeist d113912101 Log networks in its old form has been disabled. Live logging may come back soon. 16 years ago
erdgeist c7ed890222 Fix white spaces 16 years ago
erdgeist 9297967f85 Add a stat option the count bucket stalls 16 years ago
erdgeist a6fe338040 Remove superfluous test for == NULL, when variable has been used, anyway 16 years ago
erdgeist f12fa4c362 Use a self pipe to wake from io_wait when a thread finished his work. 16 years ago
erdgeist 930495a0db We sent an incorrect reply dictionary vor v6 announces 16 years ago
erdgeist 131211b4da V6 16 years ago
erdgeist 779d6c235f * http and udp routines now use thread local buffers passed in workstruct containers. In other words they do not use static_buffer anymore and are considered to be thread safe. 16 years ago
erdgeist 2df09905f5 * opentracker now drops permissions in correct order and really chroots() if ran as root 16 years ago
erdgeist a9ab9b0c0d Make all torrents in their buckets sorted again. 16 years ago
erdgeist c6947b160f Handle program end more politely 16 years ago
erdgeist 08c7162783 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read 16 years ago
erdgeist e2199cc504 New peer flag to see, whether peer came from announce or 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 daaee855b2 Whitespace fixes 16 years ago
erdgeist 206c74ee2f Make ot_try_bind local again. 16 years ago
erdgeist e534db03c6 added live sync code 16 years ago
erdgeist c28cf398fd Introduce some kind of versioning 17 years ago
erdgeist 848a06a706 Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also simplify includes 17 years ago
erdgeist c5e5569770 Fixing mmap allocation went to ot_mutex.c. Clean all torrents moved to ot_clean.c. Also make static buffers static 17 years ago
erdgeist 697e239027 Moving accesslist stuff to its own object 17 years ago
erdgeist a0d12f9ab5 Full scrape moves to its own object 17 years ago
erdgeist 41120f6a0d Move stats out of opentracker.c, also have an own file handle udp requests. 17 years ago
erdgeist 8900cc0dd9 No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable. 17 years ago
erdgeist 785a9f13bd Make to_hex thread safe. Get rid off old /24 counting code. Protect more bucket accesses by locks. 17 years ago
erdgeist 4a68f8692b We do now use the tools for locking buckets in order to prepare MT code 17 years ago
erdgeist a6b8311812 Introducing first tools to make opentracker multithreaded. 17 years ago
erdgeist 8acc0ff48f Introduce configuration dependent number of parameters in a nicer way 17 years ago
erdgeist 853dc33be2 Allow for more than one admin ip address 17 years ago
erdgeist dc8e889797 Add more full scrape stats 17 years ago
erdgeist 31eada6168 Reenabled syncing 17 years ago
erdgeist b19bbd6a85 Number of buckets is 1024 now 17 years ago
erdgeist 41019c79d8 Introducing multiscrape 17 years ago
erdgeist daf79f694d After studying opentracker live data, I decided to radically reduce default allocation for vectors and making it grow faster instead: Most pools only had one or two peers, wasting 8*15 or 8*14 bytes. 17 years ago
erdgeist b8b1493127 Increase check interval for timeouted sockets to 10 seconds. That may prevent some disrupted scrapes. 17 years ago