]>
git.ipfire.org Git - thirdparty/opentracker.git/log
denis [Fri, 2 Feb 2007 21:15:46 +0000 (21:15 +0000)]
fixed the last commit. now it really counts the scrapes and fullscrapes
denis [Thu, 1 Feb 2007 22:34:23 +0000 (22:34 +0000)]
make the interval with random an average value around the real value and not additional
erdgeist [Thu, 1 Feb 2007 22:27:44 +0000 (22:27 +0000)]
Make timeouts more human readable
denis [Thu, 1 Feb 2007 22:23:56 +0000 (22:23 +0000)]
clear the freed mempointer
erdgeist [Thu, 1 Feb 2007 17:01:03 +0000 (17:01 +0000)]
release memory for empty peer pools
erdgeist [Thu, 1 Feb 2007 16:06:17 +0000 (16:06 +0000)]
Wasted too much space for minimum element count. Now minimum elements in vektor is 16, it grows and shrinks by a factor of 4 and a shrinking hysteresis of a factor of 5
erdgeist [Thu, 1 Feb 2007 15:57:29 +0000 (15:57 +0000)]
Forgot to take into account, that there are OT_POOL_COUNT debuggable pools in one torrent. Fixed.
erdgeist [Thu, 1 Feb 2007 15:45:24 +0000 (15:45 +0000)]
Reserved too few space to hold all data for a memdebug
denis [Thu, 1 Feb 2007 15:35:01 +0000 (15:35 +0000)]
add the scrapes to the valid requests (blue mrtg line)
erdgeist [Thu, 1 Feb 2007 13:51:40 +0000 (13:51 +0000)]
el cheapo vector debugging
erdgeist [Thu, 1 Feb 2007 13:30:58 +0000 (13:30 +0000)]
Use multiple output buffers to try to avoid copy on write when unnecessary
erdgeist [Wed, 31 Jan 2007 09:58:32 +0000 (09:58 +0000)]
Try to shake off too stupid clients by sending an Bittorrent error rather than an HTTP 400
erdgeist [Wed, 31 Jan 2007 09:50:46 +0000 (09:50 +0000)]
Use signed size_t wherever appropriate
erdgeist [Wed, 31 Jan 2007 02:19:17 +0000 (02:19 +0000)]
size_t cant get < 0 and thus wont report errors
erdgeist [Tue, 30 Jan 2007 21:29:08 +0000 (21:29 +0000)]
On linux time.h must be included to use time()
erdgeist [Mon, 29 Jan 2007 13:41:04 +0000 (13:41 +0000)]
provide mrtg with more sane strings
erdgeist [Mon, 29 Jan 2007 02:02:03 +0000 (02:02 +0000)]
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 [Sat, 27 Jan 2007 17:13:53 +0000 (17:13 +0000)]
complete_D_ ... ECODERTOODUMB
erdgeist [Sat, 27 Jan 2007 17:04:55 +0000 (17:04 +0000)]
really copy in new peer, even if it already existed, to remember its state
erdgeist [Sat, 27 Jan 2007 16:42:57 +0000 (16:42 +0000)]
Asserts were always false :/
erdgeist [Sat, 27 Jan 2007 16:35:56 +0000 (16:35 +0000)]
Due to recent issues... assert() seed counts
erdgeist [Sat, 27 Jan 2007 16:06:13 +0000 (16:06 +0000)]
account downloaded before early returns
denis [Sat, 27 Jan 2007 08:57:11 +0000 (08:57 +0000)]
fix for corrupt fullscrape. did never work until now
erdgeist [Fri, 26 Jan 2007 18:09:14 +0000 (18:09 +0000)]
announce.php and scrape.php are now being handled
erdgeist [Fri, 26 Jan 2007 16:26:49 +0000 (16:26 +0000)]
Introduce another unspec'd command: sync which syncs the most recent peer pool for a torrent out. Do some variable type clean up. Do some code structure clean up.
erdgeist [Thu, 25 Jan 2007 14:16:26 +0000 (14:16 +0000)]
return random check back intervals to our clients
erdgeist [Wed, 24 Jan 2007 22:23:18 +0000 (22:23 +0000)]
Code cleanup reindenting
erdgeist [Wed, 24 Jan 2007 21:49:41 +0000 (21:49 +0000)]
Allowing more relaxed parsing of queries
erdgeist [Wed, 24 Jan 2007 21:26:50 +0000 (21:26 +0000)]
Return empty dictionary for unknown scrapes
erdgeist [Wed, 24 Jan 2007 21:18:42 +0000 (21:18 +0000)]
Do not write, if no string is passed
denis [Wed, 24 Jan 2007 21:12:05 +0000 (21:12 +0000)]
support for questionmark in URL behind the initial one
denis [Wed, 24 Jan 2007 21:06:19 +0000 (21:06 +0000)]
backout Revision 1.67
denis [Wed, 24 Jan 2007 20:48:25 +0000 (20:48 +0000)]
workaround for some weird requests
denis [Wed, 24 Jan 2007 20:20:07 +0000 (20:20 +0000)]
Denis wanted scrapes and erdgeist didnt give it :)
denis [Wed, 24 Jan 2007 20:13:30 +0000 (20:13 +0000)]
Copy request before expanding url-encoded bytes
erdgeist [Wed, 24 Jan 2007 12:56:15 +0000 (12:56 +0000)]
Debugging for failed requests.
erdgeist [Tue, 23 Jan 2007 15:48:51 +0000 (15:48 +0000)]
Count successful announces extra
erdgeist [Mon, 22 Jan 2007 02:41:09 +0000 (02:41 +0000)]
Now allow * in torrents
erdgeist [Sat, 20 Jan 2007 14:11:53 +0000 (14:11 +0000)]
FD-debug also in new iob_send path
erdgeist [Sat, 20 Jan 2007 11:13:30 +0000 (11:13 +0000)]
Full scrape, kinda tested
denis [Sat, 20 Jan 2007 02:50:33 +0000 (02:50 +0000)]
increase the timeout to make the ride a little smoother for some clients
erdgeist [Sat, 20 Jan 2007 01:50:28 +0000 (01:50 +0000)]
-m64 is not usually a correct compile option
erdgeist [Fri, 19 Jan 2007 17:50:36 +0000 (17:50 +0000)]
Debug file descriptors
denis [Fri, 19 Jan 2007 03:21:02 +0000 (03:21 +0000)]
*seuftz*
denis [Fri, 19 Jan 2007 03:19:12 +0000 (03:19 +0000)]
set the interval to 1800 for announce (last change was only for scrape)
erdgeist [Thu, 18 Jan 2007 13:06:49 +0000 (13:06 +0000)]
From now the OT_CLIENT_TIMEOUT will be enforced, even if some data arrived inside this interval
erdgeist [Thu, 18 Jan 2007 12:27:17 +0000 (12:27 +0000)]
Tidied main loop do accept() and read() before timeout()
erdgeist [Thu, 18 Jan 2007 02:40:18 +0000 (02:40 +0000)]
Give our server some air to check for timedout connections
erdgeist [Thu, 18 Jan 2007 02:23:18 +0000 (02:23 +0000)]
Rearranged code to try to read data as soon as socket is accepted, also raise backlog for listening socket
erdgeist [Wed, 17 Jan 2007 17:39:36 +0000 (17:39 +0000)]
Simple top5 by peers/seeders table
erdgeist [Wed, 17 Jan 2007 11:51:55 +0000 (11:51 +0000)]
Simple top5 by peers/seeders table
erdgeist [Tue, 16 Jan 2007 03:57:19 +0000 (03:57 +0000)]
Prevent each invocation of clean_peerlist to call time()
erdgeist [Tue, 16 Jan 2007 03:44:13 +0000 (03:44 +0000)]
Use mrtg to do periodical cleanup. Hopefully that wont make too much load for stats.
erdgeist [Tue, 16 Jan 2007 02:59:39 +0000 (02:59 +0000)]
Rudimentary stats
erdgeist [Tue, 16 Jan 2007 01:57:06 +0000 (01:57 +0000)]
Do some timeout checking on the first possible moment
erdgeist [Tue, 16 Jan 2007 01:35:10 +0000 (01:35 +0000)]
Previous answer to event=stopped irritated some clients. Now reply with a static nothing-message
denis [Mon, 15 Jan 2007 23:40:58 +0000 (23:40 +0000)]
set interval to default value from original tracker
erdgeist [Sun, 14 Jan 2007 20:22:59 +0000 (20:22 +0000)]
Cast types for mrtg_scrape sprintf
erdgeist [Sun, 14 Jan 2007 20:15:04 +0000 (20:15 +0000)]
Drop permission, if we can
erdgeist [Sat, 13 Jan 2007 19:06:39 +0000 (19:06 +0000)]
New, fixpoint distinct random algorithm for choosing peers from the list... may contain bugs. Feedback welcome
erdgeist [Sat, 13 Jan 2007 19:05:22 +0000 (19:05 +0000)]
Dont want ips from query string by default
erdgeist [Fri, 12 Jan 2007 03:09:56 +0000 (03:09 +0000)]
Compiles with newest libowfat only
erdgeist [Fri, 12 Jan 2007 01:58:25 +0000 (01:58 +0000)]
testsuite points to localhost
erdgeist [Fri, 12 Jan 2007 01:22:03 +0000 (01:22 +0000)]
casting does floor() by itself
erdgeist [Thu, 11 Jan 2007 01:06:10 +0000 (01:06 +0000)]
Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed
erdgeist [Wed, 10 Jan 2007 16:42:39 +0000 (16:42 +0000)]
Ignore SIGPIPE. This is safe, since it only raises, when the remote site died before we could send our paket back and is catched by write() returning -1
erdgeist [Tue, 9 Jan 2007 06:30:37 +0000 (06:30 +0000)]
Fixed a bug where I didn't replace new buffer pointer after realloc. Fixed a bug where I didnt copy enough memory when shrinking vectors. Now save some extra bytes in header.
erdgeist [Mon, 8 Jan 2007 05:23:04 +0000 (05:23 +0000)]
Now we also check, if no io happens
erdgeist [Mon, 8 Jan 2007 05:18:53 +0000 (05:18 +0000)]
Some code spacifying. Added actually checking timeouts.
erdgeist [Mon, 8 Jan 2007 00:57:35 +0000 (00:57 +0000)]
Indent. Sorry. Plus timeout on every connection, for every byte we got.
erdgeist [Mon, 8 Jan 2007 00:34:37 +0000 (00:34 +0000)]
This one breaks all ;) Lets see, what happens
erdgeist [Sun, 7 Jan 2007 00:20:20 +0000 (00:20 +0000)]
add timeout for clients
erdgeist [Sat, 6 Jan 2007 23:36:20 +0000 (23:36 +0000)]
shutdown was unnecessary
erdgeist [Sat, 6 Jan 2007 22:25:09 +0000 (22:25 +0000)]
tidy up options
erdgeist [Sat, 6 Jan 2007 22:24:09 +0000 (22:24 +0000)]
Apply some limits
erdgeist [Fri, 5 Jan 2007 17:01:20 +0000 (17:01 +0000)]
black listing was the wrong way around
erdgeist [Fri, 5 Jan 2007 16:25:02 +0000 (16:25 +0000)]
really check g_check_blacklist flag
erdgeist [Fri, 5 Jan 2007 13:00:06 +0000 (13:00 +0000)]
Be more helpful
erdgeist [Fri, 5 Jan 2007 12:25:44 +0000 (12:25 +0000)]
added closed tracker and blacklist code
erdgeist [Fri, 5 Jan 2007 00:00:42 +0000 (00:00 +0000)]
README\!
erdgeist [Thu, 4 Jan 2007 21:34:10 +0000 (21:34 +0000)]
Shell Testsuite
erdgeist [Thu, 4 Jan 2007 16:14:21 +0000 (16:14 +0000)]
simplified binary_search, it always does a memcmp. began to implement dump knowledge
erdgeist [Wed, 3 Jan 2007 05:11:48 +0000 (05:11 +0000)]
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.
erdgeist [Tue, 19 Dec 2006 18:09:56 +0000 (18:09 +0000)]
Remove some integer constants from code. Bad coder. Very bad coder :/
erdgeist [Tue, 19 Dec 2006 18:01:28 +0000 (18:01 +0000)]
Now every answer goes in one buffer
erdgeist [Sat, 16 Dec 2006 18:46:11 +0000 (18:46 +0000)]
Try early answers
erdgeist [Sat, 16 Dec 2006 16:14:34 +0000 (16:14 +0000)]
Missing header file
erdgeist [Sat, 16 Dec 2006 16:10:57 +0000 (16:10 +0000)]
try shutdown() the socket after writing
denis [Sat, 16 Dec 2006 14:49:20 +0000 (14:49 +0000)]
corrected the modifier for size_t
denis [Sat, 16 Dec 2006 13:27:26 +0000 (13:27 +0000)]
freebsd support
erdgeist [Sat, 16 Dec 2006 13:23:12 +0000 (13:23 +0000)]
Fixed two mem leaks from httpd :/
erdgeist [Sat, 16 Dec 2006 03:11:07 +0000 (03:11 +0000)]
Fixed memleak in example httpd :/
erdgeist [Sat, 16 Dec 2006 01:22:48 +0000 (01:22 +0000)]
Made answer http/1.1
erdgeist [Fri, 15 Dec 2006 23:53:24 +0000 (23:53 +0000)]
random
erdgeist [Fri, 15 Dec 2006 23:46:34 +0000 (23:46 +0000)]
Division in stats now works
erdgeist [Fri, 15 Dec 2006 23:38:18 +0000 (23:38 +0000)]
Fix port again ;) Include headers in Makefile dependencies
erdgeist [Fri, 15 Dec 2006 23:35:40 +0000 (23:35 +0000)]
fixed setport fuckup
erdgeist [Fri, 15 Dec 2006 23:29:38 +0000 (23:29 +0000)]
fix include
erdgeist [Fri, 15 Dec 2006 23:28:23 +0000 (23:28 +0000)]
Make code endianess save
denis [Fri, 15 Dec 2006 22:46:01 +0000 (22:46 +0000)]
fixed typo