Dirk Engling
690786b762
Forgot to specify -pthread when using threads
2007-11-16 20:19:15 +00:00
Dirk Engling
f03b2740dd
Moving accesslist stuff to its own object
2007-11-12 04:38:43 +00:00
Dirk Engling
c048749014
Reflect changes in ot_iovec and ot_fullscrape in Makefile
2007-11-12 01:39:18 +00:00
Dirk Engling
d29536e30a
MUST NOT enable features in CVSpico Makefile bad coder
2007-11-06 18:02:29 +00:00
Dirk Engling
c37d25fd75
The expensive DMEM stats is gone. No need for it, too much potential to DOS.
2007-11-06 18:02:01 +00:00
Dirk Engling
2e2c1762d3
Move stats out of opentracker.c, also have an own file handle udp requests.
2007-11-06 17:50:41 +00:00
Dirk Engling
6c2d01dba4
Thank you, GNU for fucking up pmake :)
2007-11-06 15:18:18 +00:00
Dirk Engling
bcf252f249
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
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.
2007-11-06 11:58:12 +00:00
Dirk Engling
aa25c390dd
Introducing first tools to make opentracker multithreaded.
2007-11-03 13:43:05 +00:00
Dirk Engling
df30bc8484
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
Dirk Engling
68d87742fa
Two more bugs in Makefile. Maybe I learn it one day
2007-10-01 00:31:59 +00:00
Dirk Engling
3e71f32d26
Revert debug option in Makefile
2007-10-01 00:29:46 +00:00
Dirk Engling
c6d90b150d
Makefile now runs under bsdmake and gnumake again
2007-10-01 00:27:26 +00:00
Dirk Engling
6bad28c924
Makefile defaults to an _open_ tracker again.
2007-09-10 02:43:30 +00:00
Dirk Engling
8ef59b0351
* 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
Dirk Engling
20635e3544
New Makefile, incorporated some patches sent to me by Robin H. Johnson
2007-04-03 11:08:17 +00:00
Denis Ahrens
767460cea3
revert previous commit
2007-03-17 01:26:25 +00:00
Denis Ahrens
62a41a85c8
code cleanup and more specific comments. tracker starts now also with udp port 6969 as default
2007-03-16 23:37:04 +00:00
Dirk Engling
8fc31f7e29
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
Dirk Engling
2746c1d258
Debugging for failed requests.
2007-01-24 12:56:15 +00:00
Dirk Engling
27199ad1c3
-m64 is not usually a correct compile option
2007-01-20 01:50:28 +00:00
Dirk Engling
0210ea5d90
Debug file descriptors
2007-01-19 17:50:35 +00:00
Denis Ahrens
6d049b33d3
set the interval to 1800 for announce (last change was only for scrape)
2007-01-19 03:19:12 +00:00
Dirk Engling
1e706713cc
Dont want ips from query string by default
2007-01-13 19:05:22 +00:00
Dirk Engling
afa05fad96
Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed
2007-01-11 01:06:10 +00:00
Dirk Engling
6fd6d2a5ca
tidy up options
2007-01-06 22:25:09 +00:00
Dirk Engling
b5c344ea97
black listing was the wrong way around
2007-01-05 17:00:41 +00:00
Dirk Engling
1c97e9cd8c
added closed tracker and blacklist code
2007-01-05 12:25:44 +00:00
Dirk Engling
aa444b6e18
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.
2007-01-03 05:11:48 +00:00
Denis Ahrens
8d67df43ae
freebsd support
2006-12-16 13:27:26 +00:00
Dirk Engling
f779a22f1b
Fixed two mem leaks from httpd :/
2006-12-16 13:23:12 +00:00
Dirk Engling
f10cd3e42b
Fix port again ;) Include headers in Makefile dependencies
2006-12-15 23:38:18 +00:00
Denis Ahrens
8eee752d47
fix for freebsd
2006-12-15 22:10:55 +00:00
Dirk Engling
7d1d51cc05
Now actually seems to work for the most parts
...
Added scraping
Added graceful disconnect
2006-12-14 02:44:50 +00:00
Dirk Engling
01bdb5495f
Reacts more appropriate, however EXC_BAD_ACCESS triggered
2006-12-13 14:44:14 +00:00
Dirk Engling
95f6864f4f
Trackerlogic done... not tested yet
2006-12-13 02:44:39 +00:00
Denis Ahrens
b2197faac9
Begun printf debugging
2006-12-08 22:37:44 +00:00
Dirk Engling
cc8c0a1df8
Some syntax errors removed
2006-12-08 20:28:17 +00:00
Dirk Engling
2a1b78e33b
Kickoff
2006-12-05 12:56:56 +00:00