]> git.ipfire.org Git - thirdparty/opentracker.git/log
thirdparty/opentracker.git
18 years agoJust one more typo
erdgeist [Sun, 21 Oct 2007 04:23:39 +0000 (04:23 +0000)] 
Just one more typo

18 years agoJust one more typo
erdgeist [Sun, 21 Oct 2007 04:20:42 +0000 (04:20 +0000)] 
Just one more typo

18 years agoWork around more typos that might end up in torrent files as announce urls
erdgeist [Sun, 21 Oct 2007 04:13:53 +0000 (04:13 +0000)] 
Work around more typos that might end up in torrent files as announce urls

18 years agoDebug code sometimes copied too much data
erdgeist [Sun, 21 Oct 2007 03:37:26 +0000 (03:37 +0000)] 
Debug code sometimes copied too much data

18 years agoFixed one leak from struct_http
erdgeist [Sun, 21 Oct 2007 01:11:45 +0000 (01:11 +0000)] 
Fixed one leak from struct_http

18 years agoBe even more stupidistas-tolerant
erdgeist [Fri, 19 Oct 2007 23:15:13 +0000 (23:15 +0000)] 
Be even more stupidistas-tolerant

18 years agoFix debug output
erdgeist [Fri, 19 Oct 2007 22:55:13 +0000 (22:55 +0000)] 
Fix debug output

18 years agoEnable _DEBUG_HTTPERROR to avoid warning...
erdgeist [Fri, 19 Oct 2007 22:36:28 +0000 (22:36 +0000)] 
Enable _DEBUG_HTTPERROR to avoid warning...

18 years agoInclude time since startup in full scrape debug output
erdgeist [Fri, 19 Oct 2007 22:20:42 +0000 (22:20 +0000)] 
Include time since startup in full scrape debug output

18 years agoNow limit full scrape to requests sending exactly "GET /scrape HTTP/"
erdgeist [Fri, 19 Oct 2007 22:13:59 +0000 (22:13 +0000)] 
Now limit full scrape to requests sending exactly "GET /scrape HTTP/"

18 years agoIntroducing multiscrape
erdgeist [Fri, 19 Oct 2007 21:56:59 +0000 (21:56 +0000)] 
Introducing multiscrape

18 years agoPrevent url-decoding for debug by using a temp buffer
erdgeist [Fri, 19 Oct 2007 21:00:57 +0000 (21:00 +0000)] 
Prevent url-decoding for debug by using a temp buffer

18 years agoThose stupid "announce ?info_hash" torrents get really annoying. Fix it in announce...
erdgeist [Fri, 19 Oct 2007 20:02:41 +0000 (20:02 +0000)] 
Those stupid "announce ?info_hash" torrents get really annoying. Fix it in announce and scrape.

18 years agobe more verbose about what full scrape consumers deliver in their http requests
erdgeist [Fri, 19 Oct 2007 15:37:00 +0000 (15:37 +0000)] 
be more verbose about what full scrape consumers deliver in their http requests

18 years agoAfter studying opentracker live data, I decided to radically reduce default allocatio...
erdgeist [Fri, 19 Oct 2007 14:41:30 +0000 (14:41 +0000)] 
After studying opentracker live data, I decided to radically reduce default allocation for vectors and making it grow faster instead: Most pools only had one or two peers, wasting 8*15 or 8*14 bytes.

18 years agoRemove an unused variable
erdgeist [Fri, 19 Oct 2007 05:23:04 +0000 (05:23 +0000)] 
Remove an unused variable

18 years agoRelease exactly all unused bytes in mmap allocation.
erdgeist [Fri, 19 Oct 2007 05:21:01 +0000 (05:21 +0000)] 
Release exactly all unused bytes in mmap allocation.

18 years agogive opentracker the missing header file
erdgeist [Fri, 19 Oct 2007 03:41:23 +0000 (03:41 +0000)] 
give opentracker the missing header file

18 years agoMust not dealloc mmaped buffers with free()
erdgeist [Fri, 19 Oct 2007 03:39:04 +0000 (03:39 +0000)] 
Must not dealloc mmaped buffers with free()

18 years agoFix misunderstandig of what libowfat thinks are seconds and what I did...
erdgeist [Fri, 19 Oct 2007 02:00:53 +0000 (02:00 +0000)] 
Fix misunderstandig of what libowfat thinks are seconds and what I did...

18 years agoIncrease check interval for timeouted sockets to 10 seconds. That may prevent some...
erdgeist [Fri, 19 Oct 2007 01:27:23 +0000 (01:27 +0000)] 
Increase check interval for timeouted sockets to 10 seconds. That may prevent some disrupted scrapes.

18 years agoSince array and io_batch are in a union, and we also have time-outing writable socket...
erdgeist [Fri, 19 Oct 2007 01:26:33 +0000 (01:26 +0000)] 
Since array and io_batch are in a union, and we also have time-outing writable sockets, we need to mark, which of the union is used. Also remove the blessed flag from struct http, since its rarely used and can be done in a seperate memcmp.

18 years agoCannot access members after they are freed :/
erdgeist [Fri, 19 Oct 2007 00:34:56 +0000 (00:34 +0000)] 
Cannot access members after they are freed :/

18 years agoSave a lot of work when skipping through uninteresting http request parameters
erdgeist [Thu, 18 Oct 2007 23:33:07 +0000 (23:33 +0000)] 
Save a lot of work when skipping through uninteresting http request parameters

18 years agoMake fromhex() even faster
erdgeist [Thu, 18 Oct 2007 11:50:54 +0000 (11:50 +0000)] 
Make fromhex() even faster

18 years agofixed one performance bug, where "skipping values from a &param=values pair" was...
erdgeist [Thu, 18 Oct 2007 00:21:22 +0000 (00:21 +0000)] 
fixed one performance bug, where "skipping values from a &param=values pair" was requested, the requestor ended up with "values" to be parsed again.
improved performance of fromhex
improved performance of is_unreserved() by moving it all into a simple byte array
improved performance of %41 => 'A' conversion by reordering variables

18 years agoIncrease send timeout. Also use an own variable for that.
erdgeist [Wed, 17 Oct 2007 23:41:37 +0000 (23:41 +0000)] 
Increase send timeout. Also use an own variable for that.

18 years agoIncrease send timeout. Also use an own variable for that.
erdgeist [Wed, 17 Oct 2007 22:50:48 +0000 (22:50 +0000)] 
Increase send timeout. Also use an own variable for that.

18 years agoio_timeout is absolute, not relative :/
erdgeist [Wed, 17 Oct 2007 21:13:13 +0000 (21:13 +0000)] 
io_timeout is absolute, not relative :/

18 years agoFree iobatches on timeout
erdgeist [Wed, 17 Oct 2007 20:25:18 +0000 (20:25 +0000)] 
Free iobatches on timeout

18 years agoHEADS UP: you need to check out the latest libowfat! Huge allocations are now taken...
erdgeist [Wed, 17 Oct 2007 14:43:14 +0000 (14:43 +0000)] 
HEADS UP: you need to check out the latest libowfat! Huge allocations are now taken from mmap()ed regions, not from heap anymore

18 years agoSockets we write to now do also timeout
erdgeist [Tue, 16 Oct 2007 18:23:36 +0000 (18:23 +0000)] 
Sockets we write to now do also timeout

18 years agoFixed 24h clean bug. Allocate less memory for full scrape. Free torrents without...
erdgeist [Tue, 16 Oct 2007 00:33:31 +0000 (00:33 +0000)] 
Fixed 24h clean bug. Allocate less memory for full scrape. Free torrents without any downloaders immediately.

18 years agoExclude empty torrents from full scrape, also try to shrink full scrape buffer after...
erdgeist [Tue, 16 Oct 2007 00:23:14 +0000 (00:23 +0000)] 
Exclude empty torrents from full scrape, also try to shrink full scrape buffer after it is full

18 years agofixed line breaks in log
erdgeist [Mon, 15 Oct 2007 18:03:13 +0000 (18:03 +0000)] 
fixed line breaks in log

18 years agoLog all expansive operations to stderr
erdgeist [Mon, 15 Oct 2007 18:01:38 +0000 (18:01 +0000)] 
Log all expansive operations to stderr

18 years agoMost open trackers do not have the problem of not being called often enough.. so...
erdgeist [Sat, 13 Oct 2007 17:58:20 +0000 (17:58 +0000)] 
Most open trackers do not have the problem of not being called often enough.. so do not introduce an extra timeout when waiting for activity. That also removes one of the last extraneous gettimeofday calls

18 years agosince gettimeofday is rather expansive, we do only fetch time once in a 5 second...
erdgeist [Sat, 13 Oct 2007 17:40:37 +0000 (17:40 +0000)] 
since gettimeofday is rather expansive, we do only fetch time once in a 5 second period, when we are delivered a SIGALRM.

18 years agomake 64bit safe
erdgeist [Fri, 12 Oct 2007 21:57:12 +0000 (21:57 +0000)] 
make 64bit safe

18 years agoThere is a pool leak somewhere... try to find it
erdgeist [Sat, 6 Oct 2007 19:17:21 +0000 (19:17 +0000)] 
There is a pool leak somewhere... try to find it

18 years agofixed some stat output
denis [Wed, 3 Oct 2007 22:57:35 +0000 (22:57 +0000)] 
fixed some stat output

18 years agoTwo more bugs in Makefile. Maybe I learn it one day
erdgeist [Mon, 1 Oct 2007 00:31:59 +0000 (00:31 +0000)] 
Two more bugs in Makefile. Maybe I learn it one day

18 years agoRevert debug option in Makefile
erdgeist [Mon, 1 Oct 2007 00:29:46 +0000 (00:29 +0000)] 
Revert debug option in Makefile

18 years agoMakefile now runs under bsdmake and gnumake again
erdgeist [Mon, 1 Oct 2007 00:27:26 +0000 (00:27 +0000)] 
Makefile now runs under bsdmake and gnumake again

18 years agoNew stats for s24s code, this is debug, do not use in real world
erdgeist [Wed, 26 Sep 2007 16:49:13 +0000 (16:49 +0000)] 
New stats for s24s code, this is debug, do not use in real world

18 years agofixed a small bug with 0 torrents and a cosmetical one
denis [Fri, 21 Sep 2007 22:24:22 +0000 (22:24 +0000)] 
fixed a small bug with 0 torrents and a cosmetical one

18 years agoMakefile defaults to an _open_ tracker again.
erdgeist [Mon, 10 Sep 2007 02:43:30 +0000 (02:43 +0000)] 
Makefile defaults to an _open_ tracker again.

18 years agoAn announce with event=stopped now returns correct number of leechers and seeders...
erdgeist [Mon, 10 Sep 2007 02:43:11 +0000 (02:43 +0000)] 
An announce with event=stopped now returns correct number of leechers and seeders. In TCP and UDP.

18 years agoFixed the inverse interpretation of black/white listing
erdgeist [Sat, 18 Aug 2007 12:51:13 +0000 (12:51 +0000)] 
Fixed the inverse interpretation of black/white listing

18 years agoAdded whitelisting to reimplement the WANT_CLOSED_TRACKER functionality
erdgeist [Sat, 18 Aug 2007 09:56:22 +0000 (09:56 +0000)] 
Added whitelisting to reimplement the WANT_CLOSED_TRACKER functionality

18 years agoUnder Linux one gets SIG_ALRMs from time to time when using epoll. Ignore those.
erdgeist [Sat, 18 Aug 2007 09:29:39 +0000 (09:29 +0000)] 
Under Linux one gets SIG_ALRMs from time to time when using epoll. Ignore those.

18 years agoSort of addressed a concorrency issue when receiving mutliple SIG_HUPs
erdgeist [Sat, 11 Aug 2007 13:39:36 +0000 (13:39 +0000)] 
Sort of addressed a concorrency issue when receiving mutliple SIG_HUPs

18 years agooff by -1... or so, strange error class
erdgeist [Sun, 22 Jul 2007 18:23:00 +0000 (18:23 +0000)] 
off by -1... or so, strange error class

18 years agoFix endianess issue in /24 stats code
erdgeist [Sun, 22 Jul 2007 16:33:16 +0000 (16:33 +0000)] 
Fix endianess issue in /24 stats code

18 years agosome subnet stats... still ugly and untested.
erdgeist [Sun, 22 Jul 2007 16:17:26 +0000 (16:17 +0000)] 
some subnet stats... still ugly and untested.

18 years ago* fixed "nobody " -> "nobody" fuckup when getpwnam-ing
erdgeist [Sun, 22 Jul 2007 00:40:10 +0000 (00:40 +0000)] 
* 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

18 years agoClean up pw-structs
erdgeist [Fri, 20 Jul 2007 10:20:02 +0000 (10:20 +0000)] 
Clean up pw-structs

18 years agoadd comment for udp spec location
denis [Sun, 24 Jun 2007 01:53:30 +0000 (01:53 +0000)] 
add comment for udp spec location

18 years agocheck for mafic udp id
denis [Wed, 6 Jun 2007 16:45:48 +0000 (16:45 +0000)] 
check for mafic udp id

18 years agoneed more space for data because we reach this limit easily now
denis [Sun, 20 May 2007 14:35:22 +0000 (14:35 +0000)] 
need more space for data because we reach this limit easily now

18 years agofixed an overflow in ot_overall_* variables
denis [Fri, 4 May 2007 23:08:38 +0000 (23:08 +0000)] 
fixed an overflow in ot_overall_* variables

19 years agofix a warning
denis [Tue, 10 Apr 2007 04:00:49 +0000 (04:00 +0000)] 
fix a warning

19 years agoClean up help and usage
erdgeist [Sat, 7 Apr 2007 00:24:17 +0000 (00:24 +0000)] 
Clean up help and usage

19 years agoNew Makefile, incorporated some patches sent to me by Robin H. Johnson
erdgeist [Tue, 3 Apr 2007 11:08:17 +0000 (11:08 +0000)] 
New Makefile, incorporated some patches sent to me by Robin H. Johnson

19 years agoTry to figure out nobodys uid und gid using getpwnam
erdgeist [Mon, 2 Apr 2007 17:26:40 +0000 (17:26 +0000)] 
Try to figure out nobodys uid und gid using getpwnam

19 years agoGimmi Beer!
cryx [Mon, 2 Apr 2007 17:05:06 +0000 (17:05 +0000)] 
Gimmi Beer!

19 years agoSync-daemon written in perl to sync torrents and peers between more than one tracker...
cryx [Mon, 2 Apr 2007 12:34:48 +0000 (12:34 +0000)] 
Sync-daemon written in perl to sync torrents and peers between more than one tracker entity.

19 years agoFix endianess issue with blessed ips. Document -A feature.
erdgeist [Thu, 29 Mar 2007 15:04:06 +0000 (15:04 +0000)] 
Fix endianess issue with blessed ips. Document -A feature.

19 years agoadded the -A feature that blesses a certain IP address for administrative use (like...
erdgeist [Wed, 28 Mar 2007 23:24:30 +0000 (23:24 +0000)] 
added the -A feature that blesses a certain IP address for administrative use (like sync)

19 years agoAdded inbound part of sync. This also meant to remove the black/whitelisting as we...
erdgeist [Tue, 27 Mar 2007 16:09:03 +0000 (16:09 +0000)] 
Added inbound part of sync. This also meant to remove the black/whitelisting as we did by now. A more scalable way to blacklist will follow.

19 years agoAdded outbound part of sync Proposed format: d4:syncd20:<info_hash>8*N:(xxxxyy)*Nee...
erdgeist [Tue, 27 Mar 2007 12:07:29 +0000 (12:07 +0000)] 
Added outbound part of sync Proposed format: d4:syncd20:<info_hash>8*N:(xxxxyy)*Nee, therefore had to refactor torrent cleanup now that it will hit all torrents once every OT_POOL_TIMEOUT units.

19 years agoMoved to tests/
erdgeist [Sun, 25 Mar 2007 16:47:25 +0000 (16:47 +0000)] 
Moved to tests/

19 years agorevert previous commit
denis [Sat, 17 Mar 2007 01:26:25 +0000 (01:26 +0000)] 
revert previous commit

19 years agoendianess fix for udp scrape
denis [Sat, 17 Mar 2007 01:24:56 +0000 (01:24 +0000)] 
endianess fix for udp scrape

19 years agocode cleanup and more specific comments. tracker starts now also with udp port 6969...
denis [Fri, 16 Mar 2007 23:37:04 +0000 (23:37 +0000)] 
code cleanup and more specific comments. tracker starts now also with udp port 6969 as default

19 years agosome udp scrape style cleanup
denis [Fri, 16 Mar 2007 23:04:24 +0000 (23:04 +0000)] 
some udp scrape style cleanup

19 years agosupport for udp scrape
denis [Fri, 16 Mar 2007 22:46:41 +0000 (22:46 +0000)] 
support for udp scrape

19 years agofix the stats a little for not accepting udp scrapes
denis [Fri, 16 Mar 2007 20:11:22 +0000 (20:11 +0000)] 
fix the stats a little for not accepting udp scrapes

19 years agoudp first connect needs to be counted as a connection too
denis [Thu, 15 Mar 2007 23:33:09 +0000 (23:33 +0000)] 
udp first connect needs to be counted as a connection too

19 years agoadded the udp stats to the main stats
denis [Thu, 15 Mar 2007 23:22:26 +0000 (23:22 +0000)] 
added the udp stats to the main stats

19 years agonew modes for udp4 and tcp4 stats
denis [Thu, 15 Mar 2007 23:14:14 +0000 (23:14 +0000)] 
new modes for udp4 and tcp4 stats

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