82 Commits (5948ee5986d2bd4416e5f5e65c4f8f0ddf1ef27a)

Author SHA1 Message Date
git 9b3eef571a Increase number of locks to accomodate for more cores on contemporary CPUs 6 years ago
Dirk Engling 3454c159b4 ** struct ot_workstruct gets ritcher (and will become even ritcher soon). 11 years ago
Dirk Engling 432764e079 Preparing more efficient header parsing 12 years ago
Dirk Engling f22a20de6a Enable limiting fullscrapes to only every 5 minutes per IP 12 years ago
Dirk Engling 6062c3afd2 Introduce the concept of an ot_net into opentracker. 12 years ago
Dirk Engling 1e8b74da9a Log networks in its old form has been disabled. Live logging may come back soon. 12 years ago
Dirk Engling a4af3583f2 Fix white spaces 13 years ago
Dirk Engling abe840d529 Add a stat option the count bucket stalls 13 years ago
Dirk Engling bd44fd7c4d Remove superfluous test for == NULL, when variable has been used, anyway 13 years ago
Dirk Engling 4e7e39dc1c Use a self pipe to wake from io_wait when a thread finished his work. 13 years ago
Dirk Engling eb98ff8fe3 We sent an incorrect reply dictionary vor v6 announces 13 years ago
Dirk Engling 6337649b08 V6 13 years ago
Dirk Engling b2ca164922 * 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. 13 years ago
Dirk Engling 49ec59cbbe * opentracker now drops permissions in correct order and really chroots() if ran as root 13 years ago
Dirk Engling 343169385e Make all torrents in their buckets sorted again. 13 years ago
Dirk Engling 04e5bac4c3 Handle program end more politely 13 years ago
Dirk Engling fa6c870315 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read 13 years ago
Dirk Engling a6afcf8ab8 New peer flag to see, whether peer came from announce or sync 13 years ago
Dirk Engling dcf8454138 Live Sync for peers that do not come back too early. 13 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. 13 years ago
Dirk Engling 7dcd727ce6 Whitespace fixes 13 years ago
Dirk Engling 5f7e2dafaa Make ot_try_bind local again. 13 years ago
Dirk Engling e076dab883 added live sync code 13 years ago
Dirk Engling e767fae72a Introduce some kind of versioning 14 years ago
Dirk Engling 5b3eb23f5f Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also simplify includes 14 years ago
Dirk Engling 7e570f0f60 Fixing mmap allocation went to ot_mutex.c. Clean all torrents moved to ot_clean.c. Also make static buffers static 14 years ago
Dirk Engling f03b2740dd Moving accesslist stuff to its own object 14 years ago
Dirk Engling 0bc163060e Full scrape moves to its own object 14 years ago
Dirk Engling 2e2c1762d3 Move stats out of opentracker.c, also have an own file handle udp requests. 14 years ago
Dirk Engling fed78043a6 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. 14 years ago
Dirk Engling 44cbe3de53 Make to_hex thread safe. Get rid off old /24 counting code. Protect more bucket accesses by locks. 14 years ago
Dirk Engling ee8369dbcf We do now use the tools for locking buckets in order to prepare MT code 14 years ago
Dirk Engling aa25c390dd Introducing first tools to make opentracker multithreaded. 14 years ago
Dirk Engling 472f8469d2 Introduce configuration dependent number of parameters in a nicer way 14 years ago
Dirk Engling 1b467d186c Allow for more than one admin ip address 14 years ago
Dirk Engling 66b21d1e28 Add more full scrape stats 14 years ago
Dirk Engling f37e510592 Reenabled syncing 14 years ago
Dirk Engling df30bc8484 Number of buckets is 1024 now 14 years ago
Dirk Engling d3f8013a18 Introducing multiscrape 14 years ago
Dirk Engling 71436d6b24 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. 14 years ago
Dirk Engling 6891fa78bc Increase check interval for timeouted sockets to 10 seconds. That may prevent some disrupted scrapes. 14 years ago
Dirk Engling b61651394a Increase send timeout. Also use an own variable for that. 14 years ago
Dirk Engling 7a3ddcfbce since gettimeofday is rather expansive, we do only fetch time once in a 5 second period, when we are delivered a SIGALRM. 14 years ago
Dirk Engling b3f834951c make 64bit safe 14 years ago
Dirk Engling 4319defc9c New stats for s24s code, this is debug, do not use in real world 14 years ago
Dirk Engling c863c6e108 An announce with event=stopped now returns correct number of leechers and seeders. In TCP and UDP. 14 years ago
Dirk Engling d58db69d9a Added whitelisting to reimplement the WANT_CLOSED_TRACKER functionality 14 years ago
Dirk Engling 6382386416 some subnet stats... still ugly and untested. 14 years ago
Dirk Engling 8ef59b0351 * fixed "nobody " -> "nobody" fuckup when getpwnam-ing 14 years ago
Dirk Engling cb90c27b28 Added inbound part of sync. This also meant to remove the black/whitelisting as we did by now. A more scalable way to blacklist will follow. 15 years ago