1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-12 16:00:06 +00:00
Commit Graph

61 Commits

Author SHA1 Message Date
erdgeist
342182a496 Put the WANT_MODEST_FULLSCRAPES option into Makefile 2009-08-29 13:56:54 +00:00
erdgeist
682bd069d2 Enable Networks debugging in Makefile 2009-08-26 21:24:49 +00:00
erdgeist
dad215a6e1 Add a new proxy daemon to opentracker 2009-07-16 01:36:50 +00:00
erdgeist
a7cb039b67 There seems to be more broken v6 APIs than just the OpenBSD one. Linux smells as well. 2009-03-18 14:53:35 +00:00
erdgeist
ff3c0feab5 Add workaround to openbsd's broken v6 API 2009-02-10 14:49:38 +00:00
erdgeist
131211b4da V6 2009-01-13 22:41:17 +00:00
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.
* the new workstruct also introduces a well defined buffer and result passing path
* a new function scan_find_keywords is a wrapper around scan_urlencoded_query that maps keys in url to values passed in an array of ot_keywords structs
* this new function cleans up much of url parameter parsing work, where read_ptr and write_ptr have been introduced rather than the confusing char *c, *data variables
* I now use memcmp instead of byte_diff to allow compiler to optimize constant size string compares
* got rid of UTORRENT_1600_WORKAROUND
* livesync_ticker is now only called from one (currently main) thread to avoid race conditions
2009-01-05 18:05:39 +00:00
erdgeist
548e2b8338 Introduce new flag WANT_SYNC_SCRAPE 2009-01-02 07:55:11 +00:00
erdgeist
0523b429ae Aid spotting bad clients... 2008-12-03 20:38:25 +00:00
erdgeist
334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 2008-11-28 22:21:10 +00:00
erdgeist
97980de3d9 Introduce vector debuggin code and stats restriction options 2008-10-24 00:00:55 +00:00
erdgeist
0deb06d544 Reverting last commit. Debug effect not seen. 2008-10-07 23:53:29 +00:00
erdgeist
0f271421c3 Add config option for naming threads 2008-10-07 23:45:26 +00:00
erdgeist
a5917ab6e0 Add _DEBUG flag for debug builds. This flag enables some diagnostic messages. 2008-10-05 12:31:14 +00:00
erdgeist
8cbfc8602c Cleaning up Build time options. Also add ot_livesync.[ch] 2008-10-03 21:35:03 +00:00
erdgeist
96243526c4 Typo in Makefile, thanks to Steffen. 2008-05-07 07:44:15 +00:00
erdgeist
408c5f98ed Introducing live busy network detection. 2008-01-17 10:46:25 +00:00
erdgeist
eadb0b8436 But keep Makefile in the libowfat is at ../libowfat state. 2007-12-20 06:01:16 +00:00
erdgeist
c28cf398fd Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
erdgeist
598b68561b Introduce new ot_http.c and ot_http.h 2007-12-03 01:01:37 +00:00
erdgeist
c09ad325cc Make allowing gzip a Makefile tunable 2007-11-22 04:37:41 +00:00
erdgeist
4735b99db2 Forgot to specify -pthread when using threads 2007-11-16 20:19:15 +00:00
erdgeist
697e239027 Moving accesslist stuff to its own object 2007-11-12 04:39:53 +00:00
erdgeist
bb80834bf1 Reflect changes in ot_iovec and ot_fullscrape in Makefile 2007-11-12 01:39:18 +00:00
erdgeist
5da91fd8f2 MUST NOT enable features in CVSpico Makefile bad coder 2007-11-06 18:02:29 +00:00
erdgeist
927ac023ce The expensive DMEM stats is gone. No need for it, too much potential to DOS. 2007-11-06 18:02:03 +00:00
erdgeist
41120f6a0d Move stats out of opentracker.c, also have an own file handle udp requests. 2007-11-06 17:50:41 +00:00
erdgeist
7e8d7fb259 Thank you, GNU for fucking up pmake :) 2007-11-06 15:18:18 +00:00
erdgeist
2e62624bc4 Makefile now builds each object on its own. Thus it can be build with -j2 and higher 2007-11-06 12:44:53 +00:00
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. 2007-11-06 11:58:32 +00:00
erdgeist
a6b8311812 Introducing first tools to make opentracker multithreaded. 2007-11-03 13:43:05 +00:00
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.
2007-10-27 14:06:07 +00:00
erdgeist
25e59aeca3 Two more bugs in Makefile. Maybe I learn it one day 2007-10-01 00:31:59 +00:00
erdgeist
d0b5c463d9 Revert debug option in Makefile 2007-10-01 00:29:46 +00:00
erdgeist
fb5a228162 Makefile now runs under bsdmake and gnumake again 2007-10-01 00:27:26 +00:00
erdgeist
6ad00cadc5 Makefile defaults to an _open_ tracker again. 2007-09-10 02:43:30 +00:00
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
2007-07-22 00:40:10 +00:00
erdgeist
5c18293c9c New Makefile, incorporated some patches sent to me by Robin H. Johnson 2007-04-03 11:08:17 +00:00
denis
3e610c5f60 revert previous commit 2007-03-17 01:26:25 +00:00
denis
bab7c0bbb1 code cleanup and more specific comments. tracker starts now also with udp port 6969 as default 2007-03-16 23:37:04 +00:00
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
2007-01-29 02:02:03 +00:00
erdgeist
2d0215d793 Debugging for failed requests. 2007-01-24 12:56:15 +00:00
erdgeist
3d796d93f0 -m64 is not usually a correct compile option 2007-01-20 01:50:28 +00:00
erdgeist
07a604e3d6 Debug file descriptors 2007-01-19 17:50:36 +00:00
denis
98ed6231e1 set the interval to 1800 for announce (last change was only for scrape) 2007-01-19 03:19:12 +00:00
erdgeist
25781604c2 Dont want ips from query string by default 2007-01-13 19:05:22 +00:00
erdgeist
805e46450c Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed 2007-01-11 01:06:10 +00:00
erdgeist
6b329a6959 tidy up options 2007-01-06 22:25:09 +00:00
erdgeist
e7532408b6 black listing was the wrong way around 2007-01-05 17:01:20 +00:00
erdgeist
2aa03492a5 added closed tracker and blacklist code 2007-01-05 12:25:44 +00:00