summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
17 hoursPotentially overlapping areas need memmove, not memcpyDirk Engling
17 hoursMake sure to not accept mere prefixes of addresses from query stringDirk Engling
17 hoursWith libowfat gone, we don't need to disable the auto free feature for older versionsDirk Engling
18 hoursReplace libowfat's event waiter with our own abstractionDirk Engling
It's with a heavy heart that I remove libowfat as my event library from opentracker. libowfat is what taught opentracker to walk and then fly. The tracker was literally standing on the shoulder of giants when I started writing it in 2006. For its time, the event abstraction was unparalleled and it has held up for many years, and it served the bittorrent community greatly. https://erdgeist.org/gitweb/opentracker/commit/?id=ad472597c569568bad0526d116b601dfcb36638c Unfortunately, it is very likely that libowfat will not be maintained anymore for the foreseeable future, it is already not easy to get its source from upstream and opentracker started receiving bug reports that I can not reasonably answer or patch. Before the project gets more dependent on the limitations of libowfat's current state, I need to teach opentracker to stand on its own feet and fly by itself. I've learned a great deal in the process and have even more respect now for what libowfat pioneered. The path for opentracker is cleared now. Ground work has already been laid in the migration process to support multi threaded http processing while keeping the aggressive reduction of syscalls alive that made the libowfat+opentracker combo so scalable. Here be some dragons, though: Even though there is a unit test suite now, the event loop's rewrite has not been battle tested yet. So you might want to hold up for a bit before jumping on the solo band wagon. What awaits at the end will be a long overdue v1.0, which will be named in honour of Felix.
19 hoursAdd poll/epoll/kqueue wrapper to wait for eventsDirk Engling
20 hoursThird run of making variable and function names more readable, integer scans and ip parsersDirk Engling
21 hoursSecond run of making variable and function names more readable, urlencoder now matches overall naming schemeDirk Engling
21 hoursFirst run of making variable names more readableDirk Engling
22 hoursUse new fdstate subsystem to store per fd cookie and timeoutDirk Engling
25 hoursIntroduce a sub system that can store io cookies for file descriptors, thread safely soDirk Engling
39 hoursFactor out the timeout setter, will probably go later once we do the io loop ourselfDirk Engling
40 hoursReplace libowfat's iobatch with our own smaller (and probably only temporary) ot_batchDirk Engling
41 hoursPrevent UAF when resizing iobatchesDirk Engling
41 hoursAdd mutex unit testDirk Engling
43 hoursBe stricter about const char*, Wwrite-strings will warn in the future and we don't want to try to overwrite string literalsDirk Engling
43 hoursFor workqueue tasks, class has to be in the tasktype or no worker will ever claim the task, forgot oneDirk Engling
43 hoursFor workqueue tasks, class has to be in the tasktype or no worker will ever claim the taskDirk Engling
43 hourswhite space fixesDirk Engling
43 hoursSplit options parsing and config code from opentracker.c, it has grown humongousDirk Engling
43 hoursFix build. Last commit was too huge ;)Dirk Engling
44 hoursDecouple config parsing from binding and worker spawningDirk Engling
* Options are parsed now into a listener description list before binding them at once and starting the workers later * UDP workers can now be configured per connection * socket reuse is now done more sensibly, mcast sockets always reused * Hold-off logic after spawning udp workers removed
2 daysClean up peer re-distribution between single bucket vectors and bucket lists, add testsDirk Engling
2 daysDrop dead test helperDirk Engling
2 daysRemove dead code left over from refactoringDirk Engling
2 daysRemove test for length only mode of the url escaperDirk Engling
2 daysRemove unused length calc code from urlencoderDirk Engling
2 daysa suffix rule takes no prerequisites, so make the deps explicitDirk Engling
2 daysmake all headers self containingDirk Engling
3 daysDon't let the new iovec allocation dangle in case of a malloc failure for its new dataDirk Engling
3 daysUse the new ot_socket abstraction for socket creation, read and writeDirk Engling
3 daysAdd sub system to abstract low level multi platform socket handling ourselvesDirk Engling
3 daysProperly handle socket_recv errorsDirk Engling
3 daysReplace custom int64 with its standardized int64_t typeDirk Engling
3 daysPrevent a task from outliving its connectionDirk Engling
3 daysFree the iovec when canceling tasks and not only the data chunks it holdsDirk Engling
3 daysfree_peerlist now checks peer_list for NULL, so on alloc failure we don't dereference NULLDirk Engling
3 daysReplace libowfat's ip scanner and formatters with own ownDirk Engling
3 daysAdd tests and build infra for the new ip address parser and formatterDirk Engling
3 daysAdd an ip address parser and formatter for all formats opentracker needsDirk Engling
3 daysFix: Swap compare size and membersize for binary search. Did not break anything, since they were identicalDirk Engling
3 daysCopy the correct amount of bytes for an dynamic accesslist entryDirk Engling
3 daysShouldn't stamp non-existing accesslistDirk Engling
3 daysStamp all accesslists, even the temporary onesDirk Engling
3 daysKeep accesslists for five more minutes after they have been removed not after they have been createdDirk Engling
3 daysReplace libowfat's array with our new blob abstractionDirk Engling
3 daysBuild blob abstraction and their testsDirk Engling
3 daysAdd tests for new blob abstractionDirk Engling
3 daysAdd tiny blob wrapper, holding ptr+size, optimized to grow and resetDirk Engling
3 daysInitialise workstruct for each read, so that stale entries will not linger in http error casesDirk Engling
3 daysNull terminate the request at the final return and not after it, preventing a buffer overrunDirk Engling