Commit Graph

50 Commits (0deb06d5442d4d65cf4251428d5977396cfbf023)

Author SHA1 Message Date
erdgeist 0deb06d544 Reverting last commit. Debug effect not seen.
erdgeist 0f271421c3 Add config option for naming threads
erdgeist a5917ab6e0 Add _DEBUG flag for debug builds. This flag enables some diagnostic messages.
erdgeist 8cbfc8602c Cleaning up Build time options. Also add ot_livesync.[ch]
erdgeist 96243526c4 Typo in Makefile, thanks to Steffen.
erdgeist 408c5f98ed Introducing live busy network detection.
erdgeist eadb0b8436 But keep Makefile in the libowfat is at ../libowfat state.
erdgeist c28cf398fd Introduce some kind of versioning
erdgeist 598b68561b Introduce new ot_http.c and ot_http.h
erdgeist c09ad325cc Make allowing gzip a Makefile tunable
erdgeist 4735b99db2 Forgot to specify -pthread when using threads
erdgeist 697e239027 Moving accesslist stuff to its own object
erdgeist bb80834bf1 Reflect changes in ot_iovec and ot_fullscrape in Makefile
erdgeist 5da91fd8f2 MUST NOT enable features in CVSpico Makefile bad coder
erdgeist 927ac023ce The expensive DMEM stats is gone. No need for it, too much potential to DOS.
erdgeist 41120f6a0d Move stats out of opentracker.c, also have an own file handle udp requests.
erdgeist 7e8d7fb259 Thank you, GNU for fucking up pmake :)
erdgeist 2e62624bc4 Makefile now builds each object on its own. Thus it can be build with -j2 and higher
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.
erdgeist a6b8311812 Introducing first tools to make opentracker multithreaded.
erdgeist b19bbd6a85 Number of buckets is 1024 now
Clean all torrents now only cleans one bucket at a time
All torrents that are being worked upon in an announce are being cleaned on demoand
torrent's peer lists now keep extra counts for seeds and peers to speed up scrape and announce
Sync has gone for now. I will think up a new way to implement. The old one was way to slow.
erdgeist 25e59aeca3 Two more bugs in Makefile. Maybe I learn it one day
erdgeist d0b5c463d9 Revert debug option in Makefile
erdgeist fb5a228162 Makefile now runs under bsdmake and gnumake again
erdgeist 6ad00cadc5 Makefile defaults to an _open_ tracker again.
erdgeist c0b00c0bf5 * fixed "nobody " -> "nobody" fuckup when getpwnam-ing
* implemented basic blacklisting:
** the file specified with -b <BLACKLIST> is read and added to a blacklist vector
** if an announce hits a torrent in that blacklist vector, add_peer_to_torrent fails
** sending a SIGHUP to the program forces it to reread the blacklists
** the server returns with a 500, which is not exactly nice but does the job for now
** an adaequat "failure reason:" should be delivered... TODO
erdgeist 5c18293c9c New Makefile, incorporated some patches sent to me by Robin H. Johnson
denis 3e610c5f60 revert previous commit
denis bab7c0bbb1 code cleanup and more specific comments. tracker starts now also with udp port 6969 as default
erdgeist 5a3d6b4029 We now answer as soon as the first \n is seen
We do not copy input buffer to socket's input array anymore, if we find \n in first buffer
We simplified parsing of input string
We removed asserts that were needed to debug negative seeder counts
We split static input and output buffers for obvious reasons
We enlarged static output buffer to prepare multi scrape functionality
We removed -lm from Makefile, this lib was only needed, when our random algorithm worked on floats
We close fds now that come with an empty iocookie into write loop, those don't make sense
We documented query string parser in opentracker.c a lot better to help auditing
erdgeist 2d0215d793 Debugging for failed requests.
erdgeist 3d796d93f0 -m64 is not usually a correct compile option
erdgeist 07a604e3d6 Debug file descriptors
denis 98ed6231e1 set the interval to 1800 for announce (last change was only for scrape)
erdgeist 25781604c2 Dont want ips from query string by default
erdgeist 805e46450c Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed
erdgeist 6b329a6959 tidy up options
erdgeist e7532408b6 black listing was the wrong way around
erdgeist 2aa03492a5 added closed tracker and blacklist code
erdgeist e0a9c2a4aa Added option to get ip from query string + parser, fixed two bugs concerning grow/shrink of vectors. Now cleans up a torrent BEFORE trying to remove a peer -> this may remove peer already and must be done anyway.
denis 15d9d55c34 freebsd support
erdgeist b7526f25e8 Fixed two mem leaks from httpd :/
erdgeist ed0edcaae8 Fix port again ;) Include headers in Makefile dependencies
denis 4c8d8daf06 fix for freebsd
erdgeist 688a4edd9e Now actually seems to work for the most parts
Added scraping
Added graceful disconnect
erdgeist c0f667defe Reacts more appropriate, however EXC_BAD_ACCESS triggered
erdgeist d7c26dc71b Trackerlogic done... not tested yet
denis dc025776dd Begun printf debugging
erdgeist 898206ac7a Some syntax errors removed
erdgeist ad472597c5 Kickoff