]> git.ipfire.org Git - thirdparty/opentracker.git/log
thirdparty/opentracker.git
19 years agocollecting stats for udp connections (2nd try)
denis [Thu, 15 Mar 2007 21:34:02 +0000 (21:34 +0000)] 
collecting stats for udp connections (2nd try)

19 years agocollecting stats for udp connections
denis [Thu, 15 Mar 2007 21:32:14 +0000 (21:32 +0000)] 
collecting stats for udp connections

19 years agofixed udp peerport endianess handling
denis [Tue, 13 Mar 2007 23:31:06 +0000 (23:31 +0000)] 
fixed udp peerport endianess handling

19 years agofixed udp remoteport handling
denis [Tue, 13 Mar 2007 23:24:53 +0000 (23:24 +0000)] 
fixed udp remoteport handling

19 years agosome 64bit and endianess issues with udp...
erdgeist [Tue, 13 Mar 2007 22:19:03 +0000 (22:19 +0000)] 
some 64bit and endianess issues with udp...

19 years agomake full scrapes a bit faster, increase checkback time for udp
erdgeist [Sat, 10 Mar 2007 15:39:19 +0000 (15:39 +0000)] 
make full scrapes a bit faster, increase checkback time for udp

19 years agoPort is a short, not a long
erdgeist [Thu, 8 Mar 2007 01:24:47 +0000 (01:24 +0000)] 
Port is a short, not a long

19 years agoMissing include
erdgeist [Wed, 7 Mar 2007 23:15:11 +0000 (23:15 +0000)] 
Missing include

19 years agoSanify handling of server sockets
erdgeist [Wed, 7 Mar 2007 22:19:00 +0000 (22:19 +0000)] 
Sanify handling of server sockets

19 years agoudp is working in theory, return_peers_for_torrent accepts a switch to request an...
erdgeist [Tue, 6 Mar 2007 19:43:47 +0000 (19:43 +0000)] 
udp is working in theory, return_peers_for_torrent accepts a switch to request an udp answer. Fixed prototypes.

19 years agoCan now handle multiple ips/ports, can BIND to udp ports but not yet handle them...
erdgeist [Mon, 5 Mar 2007 21:14:50 +0000 (21:14 +0000)] 
Can now handle multiple ips/ports, can BIND to udp ports but not yet handle them, now checks if event=completed comes with left=0 and drops it, if it doesnt

19 years agoSome clients even send plain : in their requests
erdgeist [Sat, 3 Mar 2007 02:10:52 +0000 (02:10 +0000)] 
Some clients even send plain : in their requests

19 years agostupid mistake in remove torrent call
erdgeist [Fri, 2 Mar 2007 02:23:03 +0000 (02:23 +0000)] 
stupid mistake in remove torrent call

19 years agoCount completed messages only once per peer
erdgeist [Fri, 16 Feb 2007 21:13:44 +0000 (21:13 +0000)] 
Count completed messages only once per peer

19 years agoAdd a lot of documentation for static functions in trackerlogic.c. Make vector_remove...
erdgeist [Sun, 4 Feb 2007 03:29:29 +0000 (03:29 +0000)] 
Add a lot of documentation for static functions in trackerlogic.c. Make vector_remove_peer use hysteresis only, if pool is expected to grow again. Remove too old torrents.

19 years agoshortened the dmem debug output
denis [Sun, 4 Feb 2007 00:37:45 +0000 (00:37 +0000)] 
shortened the dmem debug output

19 years agozero copy sockets do only work on page aligned buffers for page sized blocks. So...
erdgeist [Sat, 3 Feb 2007 16:19:59 +0000 (16:19 +0000)] 
zero copy sockets do only work on page aligned buffers for page sized blocks. So remove the code that tried to take advantage of false assuming, it would work on any buffer

19 years agomade the output of the memdebug smaller
denis [Fri, 2 Feb 2007 23:39:36 +0000 (23:39 +0000)] 
made the output of the memdebug smaller

19 years agoincreased the interval random variation
denis [Fri, 2 Feb 2007 23:37:28 +0000 (23:37 +0000)] 
increased the interval random variation

19 years agofixed the last commit. now it really counts the scrapes and fullscrapes
denis [Fri, 2 Feb 2007 21:15:46 +0000 (21:15 +0000)] 
fixed the last commit. now it really counts the scrapes and fullscrapes

19 years agomake the interval with random an average value around the real value and not additional
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

19 years agoMake timeouts more human readable
erdgeist [Thu, 1 Feb 2007 22:27:44 +0000 (22:27 +0000)] 
Make timeouts more human readable

19 years agoclear the freed mempointer
denis [Thu, 1 Feb 2007 22:23:56 +0000 (22:23 +0000)] 
clear the freed mempointer

19 years agorelease memory for empty peer pools
erdgeist [Thu, 1 Feb 2007 17:01:03 +0000 (17:01 +0000)] 
release memory for empty peer pools

19 years agoWasted too much space for minimum element count. Now minimum elements in vektor is...
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

19 years agoForgot to take into account, that there are OT_POOL_COUNT debuggable pools in one...
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.

19 years agoReserved too few space to hold all data for a memdebug
erdgeist [Thu, 1 Feb 2007 15:45:24 +0000 (15:45 +0000)] 
Reserved too few space to hold all data for a memdebug

19 years agoadd the scrapes to the valid requests (blue mrtg line)
denis [Thu, 1 Feb 2007 15:35:01 +0000 (15:35 +0000)] 
add the scrapes to the valid requests (blue mrtg line)

19 years agoel cheapo vector debugging
erdgeist [Thu, 1 Feb 2007 13:51:40 +0000 (13:51 +0000)] 
el cheapo vector debugging

19 years agoUse multiple output buffers to try to avoid copy on write when unnecessary
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

19 years agoTry to shake off too stupid clients by sending an Bittorrent error rather than an...
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

19 years agoUse signed size_t wherever appropriate
erdgeist [Wed, 31 Jan 2007 09:50:46 +0000 (09:50 +0000)] 
Use signed size_t wherever appropriate

19 years agosize_t cant get < 0 and thus wont report errors
erdgeist [Wed, 31 Jan 2007 02:19:17 +0000 (02:19 +0000)] 
size_t cant get < 0 and thus wont report errors

19 years agoOn linux time.h must be included to use time()
erdgeist [Tue, 30 Jan 2007 21:29:08 +0000 (21:29 +0000)] 
On linux time.h must be included to use time()

19 years agoprovide mrtg with more sane strings
erdgeist [Mon, 29 Jan 2007 13:41:04 +0000 (13:41 +0000)] 
provide mrtg with more sane strings

19 years agoWe now answer as soon as the first \n is seen
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

19 years agocomplete_D_ ... ECODERTOODUMB
erdgeist [Sat, 27 Jan 2007 17:13:53 +0000 (17:13 +0000)] 
complete_D_ ... ECODERTOODUMB

19 years agoreally copy in new peer, even if it already existed, to remember its state
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

19 years agoAsserts were always false :/
erdgeist [Sat, 27 Jan 2007 16:42:57 +0000 (16:42 +0000)] 
Asserts were always false :/

19 years agoDue to recent issues... assert() seed counts
erdgeist [Sat, 27 Jan 2007 16:35:56 +0000 (16:35 +0000)] 
Due to recent issues... assert() seed counts

19 years agoaccount downloaded before early returns
erdgeist [Sat, 27 Jan 2007 16:06:13 +0000 (16:06 +0000)] 
account downloaded before early returns

19 years agofix for corrupt fullscrape. did never work until now
denis [Sat, 27 Jan 2007 08:57:11 +0000 (08:57 +0000)] 
fix for corrupt fullscrape. did never work until now

19 years agoannounce.php and scrape.php are now being handled
erdgeist [Fri, 26 Jan 2007 18:09:14 +0000 (18:09 +0000)] 
announce.php and scrape.php are now being handled

19 years agoIntroduce another unspec'd command: sync which syncs the most recent peer pool for...
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.

19 years agoreturn random check back intervals to our clients
erdgeist [Thu, 25 Jan 2007 14:16:26 +0000 (14:16 +0000)] 
return random check back intervals to our clients

19 years agoCode cleanup reindenting
erdgeist [Wed, 24 Jan 2007 22:23:18 +0000 (22:23 +0000)] 
Code cleanup reindenting

19 years agoAllowing more relaxed parsing of queries
erdgeist [Wed, 24 Jan 2007 21:49:41 +0000 (21:49 +0000)] 
Allowing more relaxed parsing of queries

19 years agoReturn empty dictionary for unknown scrapes
erdgeist [Wed, 24 Jan 2007 21:26:50 +0000 (21:26 +0000)] 
Return empty dictionary for unknown scrapes

19 years agoDo not write, if no string is passed
erdgeist [Wed, 24 Jan 2007 21:18:42 +0000 (21:18 +0000)] 
Do not write, if no string is passed

19 years agosupport for questionmark in URL behind the initial one
denis [Wed, 24 Jan 2007 21:12:05 +0000 (21:12 +0000)] 
support for questionmark in URL behind the initial one

19 years agobackout Revision 1.67
denis [Wed, 24 Jan 2007 21:06:19 +0000 (21:06 +0000)] 
backout Revision 1.67

19 years agoworkaround for some weird requests
denis [Wed, 24 Jan 2007 20:48:25 +0000 (20:48 +0000)] 
workaround for some weird requests

19 years agoDenis wanted scrapes and erdgeist didnt give it :)
denis [Wed, 24 Jan 2007 20:20:07 +0000 (20:20 +0000)] 
Denis wanted scrapes and erdgeist didnt give it :)

19 years agoCopy request before expanding url-encoded bytes
denis [Wed, 24 Jan 2007 20:13:30 +0000 (20:13 +0000)] 
Copy request before expanding url-encoded bytes

19 years agoDebugging for failed requests.
erdgeist [Wed, 24 Jan 2007 12:56:15 +0000 (12:56 +0000)] 
Debugging for failed requests.

19 years agoCount successful announces extra
erdgeist [Tue, 23 Jan 2007 15:48:51 +0000 (15:48 +0000)] 
Count successful announces extra

19 years agoNow allow * in torrents
erdgeist [Mon, 22 Jan 2007 02:41:09 +0000 (02:41 +0000)] 
Now allow * in torrents

19 years agoFD-debug also in new iob_send path
erdgeist [Sat, 20 Jan 2007 14:11:53 +0000 (14:11 +0000)] 
FD-debug also in new iob_send path

19 years agoFull scrape, kinda tested
erdgeist [Sat, 20 Jan 2007 11:13:30 +0000 (11:13 +0000)] 
Full scrape, kinda tested

19 years agoincrease the timeout to make the ride a little smoother for some clients
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

19 years ago-m64 is not usually a correct compile option
erdgeist [Sat, 20 Jan 2007 01:50:28 +0000 (01:50 +0000)] 
-m64 is not usually a correct compile option

19 years agoDebug file descriptors
erdgeist [Fri, 19 Jan 2007 17:50:36 +0000 (17:50 +0000)] 
Debug file descriptors

19 years ago*seuftz*
denis [Fri, 19 Jan 2007 03:21:02 +0000 (03:21 +0000)] 
*seuftz*

19 years agoset the interval to 1800 for announce (last change was only for scrape)
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)

19 years agoFrom now the OT_CLIENT_TIMEOUT will be enforced, even if some data arrived inside...
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

19 years agoTidied main loop do accept() and read() before timeout()
erdgeist [Thu, 18 Jan 2007 12:27:17 +0000 (12:27 +0000)] 
Tidied main loop do accept() and read() before timeout()

19 years agoGive our server some air to check for timedout connections
erdgeist [Thu, 18 Jan 2007 02:40:18 +0000 (02:40 +0000)] 
Give our server some air to check for timedout connections

19 years agoRearranged code to try to read data as soon as socket is accepted, also raise backlog...
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

19 years agoSimple top5 by peers/seeders table
erdgeist [Wed, 17 Jan 2007 17:39:36 +0000 (17:39 +0000)] 
Simple top5 by peers/seeders table

19 years agoSimple top5 by peers/seeders table
erdgeist [Wed, 17 Jan 2007 11:51:55 +0000 (11:51 +0000)] 
Simple top5 by peers/seeders table

19 years agoPrevent each invocation of clean_peerlist to call time()
erdgeist [Tue, 16 Jan 2007 03:57:19 +0000 (03:57 +0000)] 
Prevent each invocation of clean_peerlist to call time()

19 years agoUse mrtg to do periodical cleanup. Hopefully that wont make too much load for stats.
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.

19 years agoRudimentary stats
erdgeist [Tue, 16 Jan 2007 02:59:39 +0000 (02:59 +0000)] 
Rudimentary stats

19 years agoDo some timeout checking on the first possible moment
erdgeist [Tue, 16 Jan 2007 01:57:06 +0000 (01:57 +0000)] 
Do some timeout checking on the first possible moment

19 years agoPrevious answer to event=stopped irritated some clients. Now reply with a static...
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

19 years agoset interval to default value from original tracker
denis [Mon, 15 Jan 2007 23:40:58 +0000 (23:40 +0000)] 
set interval to default value from original tracker

19 years agoCast types for mrtg_scrape sprintf
erdgeist [Sun, 14 Jan 2007 20:22:59 +0000 (20:22 +0000)] 
Cast types for mrtg_scrape sprintf

19 years agoDrop permission, if we can
erdgeist [Sun, 14 Jan 2007 20:15:04 +0000 (20:15 +0000)] 
Drop permission, if we can

19 years agoNew, fixpoint distinct random algorithm for choosing peers from the list... may conta...
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

19 years agoDont want ips from query string by default
erdgeist [Sat, 13 Jan 2007 19:05:22 +0000 (19:05 +0000)] 
Dont want ips from query string by default

19 years agoCompiles with newest libowfat only
erdgeist [Fri, 12 Jan 2007 03:09:56 +0000 (03:09 +0000)] 
Compiles with newest libowfat only

19 years agotestsuite points to localhost
erdgeist [Fri, 12 Jan 2007 01:58:25 +0000 (01:58 +0000)] 
testsuite points to localhost

19 years agocasting does floor() by itself
erdgeist [Fri, 12 Jan 2007 01:22:03 +0000 (01:22 +0000)] 
casting does floor() by itself

19 years agoDocumentation improved, some reindenting (again), variable types checked, unnecessary...
erdgeist [Thu, 11 Jan 2007 01:06:10 +0000 (01:06 +0000)] 
Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed

19 years agoIgnore SIGPIPE. This is safe, since it only raises, when the remote site died before...
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

19 years agoFixed a bug where I didn't replace new buffer pointer after realloc. Fixed a bug...
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.

19 years agoNow we also check, if no io happens
erdgeist [Mon, 8 Jan 2007 05:23:04 +0000 (05:23 +0000)] 
Now we also check, if no io happens

19 years agoSome code spacifying. Added actually checking timeouts.
erdgeist [Mon, 8 Jan 2007 05:18:53 +0000 (05:18 +0000)] 
Some code spacifying. Added actually checking timeouts.

19 years agoIndent. Sorry. Plus timeout on every connection, for every byte we got.
erdgeist [Mon, 8 Jan 2007 00:57:35 +0000 (00:57 +0000)] 
Indent. Sorry. Plus timeout on every connection, for every byte we got.

19 years agoThis one breaks all ;) Lets see, what happens
erdgeist [Mon, 8 Jan 2007 00:34:37 +0000 (00:34 +0000)] 
This one breaks all ;) Lets see, what happens

19 years agoadd timeout for clients
erdgeist [Sun, 7 Jan 2007 00:20:20 +0000 (00:20 +0000)] 
add timeout for clients

19 years agoshutdown was unnecessary
erdgeist [Sat, 6 Jan 2007 23:36:20 +0000 (23:36 +0000)] 
shutdown was unnecessary

19 years agotidy up options
erdgeist [Sat, 6 Jan 2007 22:25:09 +0000 (22:25 +0000)] 
tidy up options

19 years agoApply some limits
erdgeist [Sat, 6 Jan 2007 22:24:09 +0000 (22:24 +0000)] 
Apply some limits

19 years agoblack listing was the wrong way around
erdgeist [Fri, 5 Jan 2007 17:01:20 +0000 (17:01 +0000)] 
black listing was the wrong way around

19 years agoreally check g_check_blacklist flag
erdgeist [Fri, 5 Jan 2007 16:25:02 +0000 (16:25 +0000)] 
really check g_check_blacklist flag

19 years agoBe more helpful
erdgeist [Fri, 5 Jan 2007 13:00:06 +0000 (13:00 +0000)] 
Be more helpful

19 years agoadded closed tracker and blacklist code
erdgeist [Fri, 5 Jan 2007 12:25:44 +0000 (12:25 +0000)] 
added closed tracker and blacklist code

19 years agoREADME\!
erdgeist [Fri, 5 Jan 2007 00:00:42 +0000 (00:00 +0000)] 
README\!

19 years agoShell Testsuite
erdgeist [Thu, 4 Jan 2007 21:34:10 +0000 (21:34 +0000)] 
Shell Testsuite