]>
git.ipfire.org Git - thirdparty/opentracker.git/log
erdgeist [Mon, 8 Dec 2008 02:23:21 +0000 (02:23 +0000)]
Make all torrents in their buckets sorted again.
erdgeist [Sun, 7 Dec 2008 13:14:24 +0000 (13:14 +0000)]
Fix: auto increment in += is not a post increment...
erdgeist [Sun, 7 Dec 2008 12:04:43 +0000 (12:04 +0000)]
Fix post increase on wrong pointer type.
erdgeist [Sun, 7 Dec 2008 12:04:03 +0000 (12:04 +0000)]
Used wrong variable as offset into hash to copy
erdgeist [Sun, 7 Dec 2008 03:50:51 +0000 (03:50 +0000)]
Handle program end more politely
erdgeist [Sat, 6 Dec 2008 20:21:15 +0000 (20:21 +0000)]
Avoid cast warning on 64bit machines
erdgeist [Sat, 6 Dec 2008 18:46:00 +0000 (18:46 +0000)]
Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
erdgeist [Sat, 6 Dec 2008 16:57:10 +0000 (16:57 +0000)]
Format for full scrapes was not parsed correctly.
erdgeist [Sat, 6 Dec 2008 00:41:12 +0000 (00:41 +0000)]
Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT
erdgeist [Sat, 6 Dec 2008 00:40:36 +0000 (00:40 +0000)]
Forgot one define READ32
erdgeist [Fri, 5 Dec 2008 21:28:40 +0000 (21:28 +0000)]
Tidy up unnecessary includes
erdgeist [Fri, 5 Dec 2008 20:36:00 +0000 (20:36 +0000)]
Add specialized vector functions to handle peers in sorted lists
Assume that compare_size is a mulptiple of 4 in all non-specialized cases and load int32_t to compare.
erdgeist [Fri, 5 Dec 2008 20:34:24 +0000 (20:34 +0000)]
Let's give a damn about syntactical correctness of peer's http strings. It's too expensive on both sides to check and to reject.
erdgeist [Wed, 3 Dec 2008 23:25:45 +0000 (23:25 +0000)]
Now enforce that peers do not come back before our interval by giving out a 'min interval' in responses.
erdgeist [Wed, 3 Dec 2008 20:49:52 +0000 (20:49 +0000)]
printf is buffered, write not. Use printf for all.
erdgeist [Wed, 3 Dec 2008 20:49:25 +0000 (20:49 +0000)]
fix size of 0 issue
erdgeist [Wed, 3 Dec 2008 20:40:50 +0000 (20:40 +0000)]
Add debug code to spot peers that come back too early
erdgeist [Wed, 3 Dec 2008 20:40:25 +0000 (20:40 +0000)]
Add debug code to store peer id
erdgeist [Wed, 3 Dec 2008 20:39:23 +0000 (20:39 +0000)]
New peer flag to see, whether peer came from announce or sync
erdgeist [Wed, 3 Dec 2008 20:38:25 +0000 (20:38 +0000)]
Aid spotting bad clients...
denis [Wed, 3 Dec 2008 20:36:16 +0000 (20:36 +0000)]
stats fuer sync
erdgeist [Mon, 1 Dec 2008 17:56:53 +0000 (17:56 +0000)]
Live Sync for peers that do not come back too early.
erdgeist [Fri, 28 Nov 2008 22:21:10 +0000 (22:21 +0000)]
The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
erdgeist [Mon, 3 Nov 2008 10:34:54 +0000 (10:34 +0000)]
Bugfix: Number of Pools << Number of Buckets
erdgeist [Mon, 3 Nov 2008 01:52:51 +0000 (01:52 +0000)]
Try to use much less memory and hope for speedups
erdgeist [Mon, 3 Nov 2008 01:52:23 +0000 (01:52 +0000)]
Spread the amount of time spent in cleanup about 2 minutes
erdgeist [Mon, 3 Nov 2008 01:52:02 +0000 (01:52 +0000)]
Add stats about when peers renew their announces.
erdgeist [Mon, 3 Nov 2008 01:28:10 +0000 (01:28 +0000)]
Never let vectors shrink below their minimal capacity
erdgeist [Mon, 3 Nov 2008 01:27:03 +0000 (01:27 +0000)]
Formatting
erdgeist [Mon, 3 Nov 2008 01:26:38 +0000 (01:26 +0000)]
Add stats about when peers renew their announces.
erdgeist [Tue, 28 Oct 2008 01:27:22 +0000 (01:27 +0000)]
Whitespace fixes
denis [Tue, 28 Oct 2008 00:30:08 +0000 (00:30 +0000)]
fixed typo
erdgeist [Tue, 28 Oct 2008 00:24:14 +0000 (00:24 +0000)]
Fix stats parse code to allow modes with more than 4 characters. Wir wurden ja langsam zum Gespoett der Leute.
erdgeist [Tue, 28 Oct 2008 00:23:32 +0000 (00:23 +0000)]
First vector has size 1, not 0 in debug vector
erdgeist [Sun, 26 Oct 2008 12:01:58 +0000 (12:01 +0000)]
Fix: blacklist and whitelist config option parsing code was the wrong way
erdgeist [Fri, 24 Oct 2008 00:06:35 +0000 (00:06 +0000)]
Document WANT_RESTRICT_STATS in sample config file
erdgeist [Fri, 24 Oct 2008 00:04:02 +0000 (00:04 +0000)]
Enable stats restricting config file option
erdgeist [Fri, 24 Oct 2008 00:03:18 +0000 (00:03 +0000)]
Tidy up stats task.
erdgeist [Fri, 24 Oct 2008 00:01:42 +0000 (00:01 +0000)]
Move more complicated stats code to its own thread
erdgeist [Fri, 24 Oct 2008 00:00:55 +0000 (00:00 +0000)]
Introduce vector debuggin code and stats restriction options
erdgeist [Thu, 23 Oct 2008 23:58:18 +0000 (23:58 +0000)]
Add code to debug vector code performance.
denis [Wed, 22 Oct 2008 21:28:00 +0000 (21:28 +0000)]
fixed the length
erdgeist [Fri, 17 Oct 2008 15:21:47 +0000 (15:21 +0000)]
release pools only after all other services have been stopped.
erdgeist [Fri, 17 Oct 2008 15:21:11 +0000 (15:21 +0000)]
Fix debug output for addresses >127
erdgeist [Tue, 7 Oct 2008 23:53:29 +0000 (23:53 +0000)]
Reverting last commit. Debug effect not seen.
erdgeist [Tue, 7 Oct 2008 23:45:26 +0000 (23:45 +0000)]
Add config option for naming threads
erdgeist [Tue, 7 Oct 2008 23:44:59 +0000 (23:44 +0000)]
allow threads to be named. not posix compliant.
denis [Tue, 7 Oct 2008 02:09:38 +0000 (02:09 +0000)]
only sync when the peer is actually added to the first pool. this saves ca. 40% syncdata
erdgeist [Mon, 6 Oct 2008 20:18:42 +0000 (20:18 +0000)]
Bugfix: API change missed in two points, when calling return_peers_for_torrent. is_tcp was replaced by FLAG_TCP or FLAG_UDP
erdgeist [Mon, 6 Oct 2008 19:43:52 +0000 (19:43 +0000)]
Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped
erdgeist [Mon, 6 Oct 2008 11:42:03 +0000 (11:42 +0000)]
A new config file option to connect to tcp and udp at once has been added. Also some clarifications have been put into the sample config file.
erdgeist [Mon, 6 Oct 2008 03:59:25 +0000 (03:59 +0000)]
Futher clean up config file documentation
erdgeist [Mon, 6 Oct 2008 03:46:42 +0000 (03:46 +0000)]
Add some explanations about the implicite :6969 and the ancient tracker sync format
erdgeist [Mon, 6 Oct 2008 03:42:51 +0000 (03:42 +0000)]
document the new config file feature.
erdgeist [Mon, 6 Oct 2008 02:06:23 +0000 (02:06 +0000)]
Make ot_try_bind local again.
erdgeist [Mon, 6 Oct 2008 02:05:53 +0000 (02:05 +0000)]
Live sync is now handled in its own thread. Therefore it now creates and handles its own sockets.
erdgeist [Mon, 6 Oct 2008 02:03:08 +0000 (02:03 +0000)]
Make ot_try_bind local again. Also dont handle multi cast udp packets in opentracker.c, ot_livesync.c does it by itself.
erdgeist [Mon, 6 Oct 2008 02:02:12 +0000 (02:02 +0000)]
Cosmetics
erdgeist [Sun, 5 Oct 2008 12:31:14 +0000 (12:31 +0000)]
Add _DEBUG flag for debug builds. This flag enables some diagnostic messages.
erdgeist [Sun, 5 Oct 2008 12:30:06 +0000 (12:30 +0000)]
Make scan_ip4_port API more sane, add debug output, be less tolerant when syntax checking command line options
erdgeist [Sun, 5 Oct 2008 12:28:57 +0000 (12:28 +0000)]
Enabled debug output, fixed blessed ip permissions
erdgeist [Sun, 5 Oct 2008 12:28:12 +0000 (12:28 +0000)]
white space in comment
erdgeist [Sat, 4 Oct 2008 05:40:51 +0000 (05:40 +0000)]
added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes
cleaned up many internal hardcoded values, like PROTO_FLAG,
erdgeist [Fri, 3 Oct 2008 21:35:03 +0000 (21:35 +0000)]
Cleaning up Build time options. Also add ot_livesync.[ch]
erdgeist [Fri, 3 Oct 2008 21:33:53 +0000 (21:33 +0000)]
Live syncing between multiple tracker instances via udp multicast.
erdgeist [Fri, 3 Oct 2008 18:30:28 +0000 (18:30 +0000)]
Refine config syntax. Testing code...
erdgeist [Tue, 23 Sep 2008 22:59:54 +0000 (22:59 +0000)]
Add a config file framework to opentracker
denis [Wed, 17 Sep 2008 02:49:23 +0000 (02:49 +0000)]
add missing include on linux
denis [Mon, 15 Sep 2008 00:55:17 +0000 (00:55 +0000)]
now checking for the correct connection-id we gave out
denis [Sun, 14 Sep 2008 17:11:19 +0000 (17:11 +0000)]
use a more reasonable compression level
denis [Sat, 30 Aug 2008 00:05:44 +0000 (00:05 +0000)]
send out the total downloaders for a announce response
erdgeist [Wed, 7 May 2008 07:44:15 +0000 (07:44 +0000)]
Typo in Makefile, thanks to Steffen.
erdgeist [Tue, 5 Feb 2008 01:55:06 +0000 (01:55 +0000)]
Fix endianess issues, also obey number of peers requested in udp announces
erdgeist [Fri, 25 Jan 2008 17:22:55 +0000 (17:22 +0000)]
Embarrasing counter direction bug :)
erdgeist [Thu, 17 Jan 2008 15:34:50 +0000 (15:34 +0000)]
Forgot to #ifdef some code only interesting when doing live network logging.
erdgeist [Thu, 17 Jan 2008 10:46:25 +0000 (10:46 +0000)]
Introducing live busy network detection.
erdgeist [Thu, 17 Jan 2008 07:52:17 +0000 (07:52 +0000)]
sys/param.h needed under openbsd
erdgeist [Thu, 20 Dec 2007 06:04:15 +0000 (06:04 +0000)]
Enable revision watching from the internet
erdgeist [Thu, 20 Dec 2007 06:01:16 +0000 (06:01 +0000)]
But keep Makefile in the libowfat is at ../libowfat state.
erdgeist [Thu, 20 Dec 2007 05:59:34 +0000 (05:59 +0000)]
Introduce some kind of versioning
erdgeist [Mon, 17 Dec 2007 18:55:38 +0000 (18:55 +0000)]
Forgot to unlock bucket in case of malloc error, thanks to Astro for reporting.
erdgeist [Mon, 17 Dec 2007 13:23:27 +0000 (13:23 +0000)]
Add documentation to our uri scanner
erdgeist [Sat, 15 Dec 2007 17:39:38 +0000 (17:39 +0000)]
too many wrong udp requests scroll too much :) disable logging for now
erdgeist [Sat, 15 Dec 2007 17:35:27 +0000 (17:35 +0000)]
more udp debugging
erdgeist [Sat, 15 Dec 2007 17:32:44 +0000 (17:32 +0000)]
Do not lock out well behaving clients
erdgeist [Sat, 15 Dec 2007 17:21:22 +0000 (17:21 +0000)]
more udp debugging
erdgeist [Sat, 15 Dec 2007 17:11:43 +0000 (17:11 +0000)]
Prepare udp connection id generation and checking
denis [Fri, 14 Dec 2007 22:01:14 +0000 (22:01 +0000)]
add support for more stats:
1. stats for added and removed torrents
2. stats for start and stopped events from peers
this should help to detect DoS attacks and is useful for
profiling
erdgeist [Tue, 11 Dec 2007 23:34:36 +0000 (23:34 +0000)]
A simple script that fills up opentracker with some peers, if -DWANT_IP_FROM_QUERY_STRING is specifierd
denis [Sat, 8 Dec 2007 18:47:16 +0000 (18:47 +0000)]
add mrtgstyle stats for number of torrents
erdgeist [Wed, 5 Dec 2007 01:40:24 +0000 (01:40 +0000)]
/ can now be redirected to any URL
erdgeist [Tue, 4 Dec 2007 23:57:29 +0000 (23:57 +0000)]
Count invalid requests
erdgeist [Tue, 4 Dec 2007 23:11:05 +0000 (23:11 +0000)]
Be a little more verbose about why increases fail
erdgeist [Tue, 4 Dec 2007 23:04:24 +0000 (23:04 +0000)]
print ip addresses from unsigned chars
denis [Tue, 4 Dec 2007 18:29:34 +0000 (18:29 +0000)]
[19:19] <eRdgEiSt> Denis: erdgeist ist ein Volltrottel!
erdgeist [Mon, 3 Dec 2007 01:21:34 +0000 (01:21 +0000)]
Dont need arpa/inet
erdgeist [Mon, 3 Dec 2007 01:21:12 +0000 (01:21 +0000)]
Avoid warnings about unused variables without certain defines
erdgeist [Mon, 3 Dec 2007 01:20:44 +0000 (01:20 +0000)]
Fix a broken merge result
erdgeist [Mon, 3 Dec 2007 01:20:27 +0000 (01:20 +0000)]
Fix include for iovecs
erdgeist [Mon, 3 Dec 2007 01:12:25 +0000 (01:12 +0000)]
add newline to end of file