summaryrefslogtreecommitdiff
path: root/opentracker.c
AgeCommit message (Expand)Author
6 daysDefer accepts until some data actually is thereDirk Engling
6 daysEnforce the invariant that each socket is only ever expected to be read from or written to, never bothDirk Engling
7 daysReduce syscalls and add helper to count themDirk Engling
7 daysConsolidate all tcp/http tear down into a single http_close function to prevent a rare UAF for expiring connectionsDirk Engling
8 daysRevert last wake-up experiment. Having each udp worker wake up once a second to check if the tracker stops is wastefulDirk Engling
8 daysWith more workers blockingly waiting on udp sockets, we need to keep track of all sockets to shut them down on exitDirk Engling
8 daysPerformance improvement, where it works: Let different udp worker threads have their own socketDirk Engling
9 daysThe main event loop(s) now also catch an EINTR and return instead of blockingDirk Engling
9 daysPlug in the new per-thread stats counter, also make sure that the ot_clean sleep does not stall tracker exitDirk Engling
9 daysTurn malloc+memset into callocDirk Engling
9 daysForgot some g_now_seconds occurencesDirk Engling
9 daysAll OSes now do have a cheap monotonic clock, so no caching thread is needed. Also add some relative time helpersDirk Engling
10 daysRevive http keep alive to save tcp connection setup costsDirk Engling
10 daysReplace libowfat's event waiter with our own abstractionDirk Engling
10 daysThird run of making variable and function names more readable, integer scans and ip parsersDirk Engling
10 daysSecond run of making variable and function names more readable, urlencoder now matches overall naming schemeDirk Engling
10 daysUse new fdstate subsystem to store per fd cookie and timeoutDirk Engling
11 daysFactor out the timeout setter, will probably go later once we do the io loop ourselfDirk Engling
11 daysReplace libowfat's iobatch with our own smaller (and probably only temporary) ot_batchDirk Engling
11 daysBe stricter about const char*, Wwrite-strings will warn in the future and we don't want to try to overwrite string literalsDirk Engling
11 dayswhite space fixesDirk Engling
11 daysSplit options parsing and config code from opentracker.c, it has grown humongousDirk Engling
11 daysFix build. Last commit was too huge ;)Dirk Engling
11 daysDecouple config parsing from binding and worker spawningDirk Engling
12 daysUse the new ot_socket abstraction for socket creation, read and writeDirk Engling
12 daysReplace custom int64 with its standardized int64_t typeDirk Engling
12 daysReplace libowfat's ip scanner and formatters with own ownDirk Engling
12 daysReplace libowfat's array with our new blob abstractionDirk Engling
12 daysInitialise workstruct for each read, so that stale entries will not linger in http error casesDirk Engling
13 daysUse new ranged unsigned int scanner everywhere and squash some bugs along the wayDirk Engling
13 daysadd missing break in config file parserDirk Engling
13 daysReplace all manual hex conversion with the new helperDirk Engling
13 daysUse new entropy fascility and add tests for itDirk Engling
13 daysReplace endianess helpers and remove unused system and libowfat includedDirk Engling
13 daysRework config file parser and tidy up mem initsDirk Engling
2026-04-03turn all int offsets into size_tDirk Engling
2024-04-16Remove CVS version tags, they did not work anymore after moving to gitDirk Engling
2024-04-15Install default signal handlers before spawning first threadDirk Engling
2024-04-15time_caching_worker never returns, but if it would, it should return a valueDirk Engling
2024-04-15clang-formatDirk Engling
2024-04-14SpellingDirk Engling
2024-04-14print when RANDOMTORRENTS were createdDirk Engling
2024-04-14Make the amount of random torrents a tunableDirk Engling
2024-04-14Revert b8ee3dfec11d1c66bee614bfab171ada9fc2bb78Dirk Engling
2024-04-14remove debug fprintfs used to catch a bugDirk Engling
2024-04-14Use the HELPLINE macro for help linesDirk Engling
2024-04-13Cancel chunked transfers on dead sockets, tooDirk Engling
2024-04-13Fix type warnings in debug stringsDirk Engling
2024-04-13Allow opentracker to start with a random set of torrents for debugging purposesDirk Engling
2024-04-13Better track current iobatchDirk Engling