]>
git.ipfire.org Git - thirdparty/opentracker.git/log
erdgeist [Sun, 21 Oct 2007 04:23:39 +0000 (04:23 +0000)]
Just one more typo
erdgeist [Sun, 21 Oct 2007 04:20:42 +0000 (04:20 +0000)]
Just one more typo
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
erdgeist [Sun, 21 Oct 2007 03:37:26 +0000 (03:37 +0000)]
Debug code sometimes copied too much data
erdgeist [Sun, 21 Oct 2007 01:11:45 +0000 (01:11 +0000)]
Fixed one leak from struct_http
erdgeist [Fri, 19 Oct 2007 23:15:13 +0000 (23:15 +0000)]
Be even more stupidistas-tolerant
erdgeist [Fri, 19 Oct 2007 22:55:13 +0000 (22:55 +0000)]
Fix debug output
erdgeist [Fri, 19 Oct 2007 22:36:28 +0000 (22:36 +0000)]
Enable _DEBUG_HTTPERROR to avoid warning...
erdgeist [Fri, 19 Oct 2007 22:20:42 +0000 (22:20 +0000)]
Include time since startup in full scrape debug output
erdgeist [Fri, 19 Oct 2007 22:13:59 +0000 (22:13 +0000)]
Now limit full scrape to requests sending exactly "GET /scrape HTTP/"
erdgeist [Fri, 19 Oct 2007 21:56:59 +0000 (21:56 +0000)]
Introducing multiscrape
erdgeist [Fri, 19 Oct 2007 21:00:57 +0000 (21:00 +0000)]
Prevent url-decoding for debug by using a temp buffer
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.
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
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.
erdgeist [Fri, 19 Oct 2007 05:23:04 +0000 (05:23 +0000)]
Remove an unused variable
erdgeist [Fri, 19 Oct 2007 05:21:01 +0000 (05:21 +0000)]
Release exactly all unused bytes in mmap allocation.
erdgeist [Fri, 19 Oct 2007 03:41:23 +0000 (03:41 +0000)]
give opentracker the missing header file
erdgeist [Fri, 19 Oct 2007 03:39:04 +0000 (03:39 +0000)]
Must not dealloc mmaped buffers with free()
erdgeist [Fri, 19 Oct 2007 02:00:53 +0000 (02:00 +0000)]
Fix misunderstandig of what libowfat thinks are seconds and what I did...
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.
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.
erdgeist [Fri, 19 Oct 2007 00:34:56 +0000 (00:34 +0000)]
Cannot access members after they are freed :/
erdgeist [Thu, 18 Oct 2007 23:33:07 +0000 (23:33 +0000)]
Save a lot of work when skipping through uninteresting http request parameters
erdgeist [Thu, 18 Oct 2007 11:50:54 +0000 (11:50 +0000)]
Make fromhex() even faster
erdgeist [Thu, 18 Oct 2007 00:21:22 +0000 (00:21 +0000)]
fixed one performance bug, where "skipping values from a ¶m=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
erdgeist [Wed, 17 Oct 2007 23:41:37 +0000 (23:41 +0000)]
Increase 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.
erdgeist [Wed, 17 Oct 2007 21:13:13 +0000 (21:13 +0000)]
io_timeout is absolute, not relative :/
erdgeist [Wed, 17 Oct 2007 20:25:18 +0000 (20:25 +0000)]
Free iobatches on timeout
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
erdgeist [Tue, 16 Oct 2007 18:23:36 +0000 (18:23 +0000)]
Sockets we write to now do also timeout
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.
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
erdgeist [Mon, 15 Oct 2007 18:03:13 +0000 (18:03 +0000)]
fixed line breaks in log
erdgeist [Mon, 15 Oct 2007 18:01:38 +0000 (18:01 +0000)]
Log all expansive operations to stderr
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
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.
erdgeist [Fri, 12 Oct 2007 21:57:12 +0000 (21:57 +0000)]
make 64bit safe
erdgeist [Sat, 6 Oct 2007 19:17:21 +0000 (19:17 +0000)]
There is a pool leak somewhere... try to find it
denis [Wed, 3 Oct 2007 22:57:35 +0000 (22:57 +0000)]
fixed some stat output
erdgeist [Mon, 1 Oct 2007 00:31:59 +0000 (00:31 +0000)]
Two more bugs in Makefile. Maybe I learn it one day
erdgeist [Mon, 1 Oct 2007 00:29:46 +0000 (00:29 +0000)]
Revert debug option in Makefile
erdgeist [Mon, 1 Oct 2007 00:27:26 +0000 (00:27 +0000)]
Makefile now runs under bsdmake and gnumake again
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
denis [Fri, 21 Sep 2007 22:24:22 +0000 (22:24 +0000)]
fixed a small bug with 0 torrents and a cosmetical one
erdgeist [Mon, 10 Sep 2007 02:43:30 +0000 (02:43 +0000)]
Makefile defaults to an _open_ tracker again.
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.
erdgeist [Sat, 18 Aug 2007 12:51:13 +0000 (12:51 +0000)]
Fixed the inverse interpretation of black/white listing
erdgeist [Sat, 18 Aug 2007 09:56:22 +0000 (09:56 +0000)]
Added whitelisting to reimplement the WANT_CLOSED_TRACKER functionality
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.
erdgeist [Sat, 11 Aug 2007 13:39:36 +0000 (13:39 +0000)]
Sort of addressed a concorrency issue when receiving mutliple SIG_HUPs
erdgeist [Sun, 22 Jul 2007 18:23:00 +0000 (18:23 +0000)]
off by -1... or so, strange error class
erdgeist [Sun, 22 Jul 2007 16:33:16 +0000 (16:33 +0000)]
Fix endianess issue in /24 stats code
erdgeist [Sun, 22 Jul 2007 16:17:26 +0000 (16:17 +0000)]
some subnet stats... still ugly and untested.
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
erdgeist [Fri, 20 Jul 2007 10:20:02 +0000 (10:20 +0000)]
Clean up pw-structs
denis [Sun, 24 Jun 2007 01:53:30 +0000 (01:53 +0000)]
add comment for udp spec location
denis [Wed, 6 Jun 2007 16:45:48 +0000 (16:45 +0000)]
check for mafic udp id
denis [Sun, 20 May 2007 14:35:22 +0000 (14:35 +0000)]
need more space for data because we reach this limit easily now
denis [Fri, 4 May 2007 23:08:38 +0000 (23:08 +0000)]
fixed an overflow in ot_overall_* variables
denis [Tue, 10 Apr 2007 04:00:49 +0000 (04:00 +0000)]
fix a warning
erdgeist [Sat, 7 Apr 2007 00:24:17 +0000 (00:24 +0000)]
Clean up help and usage
erdgeist [Tue, 3 Apr 2007 11:08:17 +0000 (11:08 +0000)]
New Makefile, incorporated some patches sent to me by Robin H. Johnson
erdgeist [Mon, 2 Apr 2007 17:26:40 +0000 (17:26 +0000)]
Try to figure out nobodys uid und gid using getpwnam
cryx [Mon, 2 Apr 2007 17:05:06 +0000 (17:05 +0000)]
Gimmi Beer!
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.
erdgeist [Thu, 29 Mar 2007 15:04:06 +0000 (15:04 +0000)]
Fix endianess issue with blessed ips. Document -A feature.
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)
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.
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.
erdgeist [Sun, 25 Mar 2007 16:47:25 +0000 (16:47 +0000)]
Moved to tests/
denis [Sat, 17 Mar 2007 01:26:25 +0000 (01:26 +0000)]
revert previous commit
denis [Sat, 17 Mar 2007 01:24:56 +0000 (01:24 +0000)]
endianess fix for udp scrape
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
denis [Fri, 16 Mar 2007 23:04:24 +0000 (23:04 +0000)]
some udp scrape style cleanup
denis [Fri, 16 Mar 2007 22:46:41 +0000 (22:46 +0000)]
support for udp scrape
denis [Fri, 16 Mar 2007 20:11:22 +0000 (20:11 +0000)]
fix the stats a little for not accepting udp scrapes
denis [Thu, 15 Mar 2007 23:33:09 +0000 (23:33 +0000)]
udp first connect needs to be counted as a connection too
denis [Thu, 15 Mar 2007 23:22:26 +0000 (23:22 +0000)]
added the udp stats to the main stats
denis [Thu, 15 Mar 2007 23:14:14 +0000 (23:14 +0000)]
new modes for udp4 and tcp4 stats
denis [Thu, 15 Mar 2007 21:34:02 +0000 (21:34 +0000)]
collecting stats for udp connections (2nd try)
denis [Thu, 15 Mar 2007 21:32:14 +0000 (21:32 +0000)]
collecting stats for udp connections
denis [Tue, 13 Mar 2007 23:31:06 +0000 (23:31 +0000)]
fixed udp peerport endianess handling
denis [Tue, 13 Mar 2007 23:24:53 +0000 (23:24 +0000)]
fixed udp remoteport handling
erdgeist [Tue, 13 Mar 2007 22:19:03 +0000 (22:19 +0000)]
some 64bit and endianess issues with udp...
erdgeist [Sat, 10 Mar 2007 15:39:19 +0000 (15:39 +0000)]
make full scrapes a bit faster, increase checkback time for udp
erdgeist [Thu, 8 Mar 2007 01:24:47 +0000 (01:24 +0000)]
Port is a short, not a long
erdgeist [Wed, 7 Mar 2007 23:15:11 +0000 (23:15 +0000)]
Missing include
erdgeist [Wed, 7 Mar 2007 22:19:00 +0000 (22:19 +0000)]
Sanify handling of server sockets
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.
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
erdgeist [Sat, 3 Mar 2007 02:10:52 +0000 (02:10 +0000)]
Some clients even send plain : in their requests
erdgeist [Fri, 2 Mar 2007 02:23:03 +0000 (02:23 +0000)]
stupid mistake in remove torrent call
erdgeist [Fri, 16 Feb 2007 21:13:44 +0000 (21:13 +0000)]
Count completed messages only once per peer
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.
denis [Sun, 4 Feb 2007 00:37:45 +0000 (00:37 +0000)]
shortened the dmem debug output
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
denis [Fri, 2 Feb 2007 23:39:36 +0000 (23:39 +0000)]
made the output of the memdebug smaller
denis [Fri, 2 Feb 2007 23:37:28 +0000 (23:37 +0000)]
increased the interval random variation