Commit Graph

  • 2b715b89f1 Debug code sometimes copied too much data erdgeist 2007-10-21 03:37:26 +0000
  • ddd85ec7e0 Fixed one leak from struct_http erdgeist 2007-10-21 01:11:45 +0000
  • 8098adb48e Be even more stupidistas-tolerant erdgeist 2007-10-19 23:15:13 +0000
  • 84f8738b82 Fix debug output erdgeist 2007-10-19 22:55:13 +0000
  • d768bf6e81 Enable _DEBUG_HTTPERROR to avoid warning... erdgeist 2007-10-19 22:36:28 +0000
  • 53bce09735 Include time since startup in full scrape debug output erdgeist 2007-10-19 22:20:42 +0000
  • c59e44ba94 Now limit full scrape to requests sending exactly "GET /scrape HTTP/" erdgeist 2007-10-19 22:13:59 +0000
  • 41019c79d8 Introducing multiscrape erdgeist 2007-10-19 21:56:59 +0000
  • d5876ebb6b Prevent url-decoding for debug by using a temp buffer erdgeist 2007-10-19 21:00:57 +0000
  • 271ff156ec Those stupid "announce ?info_hash" torrents get really annoying. Fix it in announce and scrape. erdgeist 2007-10-19 20:02:41 +0000
  • 1b0859411e be more verbose about what full scrape consumers deliver in their http requests erdgeist 2007-10-19 15:37:00 +0000
  • daf79f694d 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 2007-10-19 14:41:30 +0000
  • 870c995fbb Remove an unused variable erdgeist 2007-10-19 05:23:04 +0000
  • cab763d4ee Release exactly all unused bytes in mmap allocation. erdgeist 2007-10-19 05:21:01 +0000
  • 714ea1b88e give opentracker the missing header file erdgeist 2007-10-19 03:41:23 +0000
  • f56e40c24e Must not dealloc mmaped buffers with free() erdgeist 2007-10-19 03:39:04 +0000
  • d25cf9307e Fix misunderstandig of what libowfat thinks are seconds and what I did... erdgeist 2007-10-19 02:00:53 +0000
  • b8b1493127 Increase check interval for timeouted sockets to 10 seconds. That may prevent some disrupted scrapes. erdgeist 2007-10-19 01:27:23 +0000
  • e1f122f7d1 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 2007-10-19 01:26:33 +0000
  • 6eb441d8a0 Cannot access members after they are freed :/ erdgeist 2007-10-19 00:34:56 +0000
  • b86e6382a1 Save a lot of work when skipping through uninteresting http request parameters erdgeist 2007-10-18 23:33:07 +0000
  • dba3bb3ae7 Make fromhex() even faster erdgeist 2007-10-18 11:50:54 +0000
  • 243d5961d0 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 erdgeist 2007-10-18 00:21:22 +0000
  • be117f96a2 Increase send timeout. Also use an own variable for that. erdgeist 2007-10-17 23:41:37 +0000
  • 32f17413fa Increase send timeout. Also use an own variable for that. erdgeist 2007-10-17 22:50:48 +0000
  • 28de135098 io_timeout is absolute, not relative :/ erdgeist 2007-10-17 21:13:13 +0000
  • d1c57d90dd Free iobatches on timeout erdgeist 2007-10-17 20:25:18 +0000
  • 8e78ac7012 HEADS UP: you need to check out the latest libowfat! Huge allocations are now taken from mmap()ed regions, not from heap anymore erdgeist 2007-10-17 14:43:14 +0000
  • 1e6b48cbc0 Sockets we write to now do also timeout erdgeist 2007-10-16 18:23:36 +0000
  • c730a24d0a Fixed 24h clean bug. Allocate less memory for full scrape. Free torrents without any downloaders immediately. erdgeist 2007-10-16 00:33:31 +0000
  • 28d88e3380 Exclude empty torrents from full scrape, also try to shrink full scrape buffer after it is full erdgeist 2007-10-16 00:23:14 +0000
  • 3dc470d672 fixed line breaks in log erdgeist 2007-10-15 18:03:13 +0000
  • 65cc45f129 Log all expansive operations to stderr erdgeist 2007-10-15 18:01:38 +0000
  • ffffd80719 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 2007-10-13 17:58:20 +0000
  • 6c1adb8fc8 since gettimeofday is rather expansive, we do only fetch time once in a 5 second period, when we are delivered a SIGALRM. erdgeist 2007-10-13 17:40:37 +0000
  • 4c15dc7a70 make 64bit safe erdgeist 2007-10-12 21:57:12 +0000
  • dd82db18ad There is a pool leak somewhere... try to find it erdgeist 2007-10-06 19:17:21 +0000
  • 0d36a8754e fixed some stat output denis 2007-10-03 22:57:35 +0000
  • 25e59aeca3 Two more bugs in Makefile. Maybe I learn it one day erdgeist 2007-10-01 00:31:59 +0000
  • d0b5c463d9 Revert debug option in Makefile erdgeist 2007-10-01 00:29:46 +0000
  • fb5a228162 Makefile now runs under bsdmake and gnumake again erdgeist 2007-10-01 00:27:26 +0000
  • c350fa0b3c New stats for s24s code, this is debug, do not use in real world erdgeist 2007-09-26 16:49:13 +0000
  • c4f924810e fixed a small bug with 0 torrents and a cosmetical one denis 2007-09-21 22:24:22 +0000
  • 6ad00cadc5 Makefile defaults to an _open_ tracker again. erdgeist 2007-09-10 02:43:30 +0000
  • 33c9c530d0 An announce with event=stopped now returns correct number of leechers and seeders. In TCP and UDP. erdgeist 2007-09-10 02:43:11 +0000
  • ea276fa0bf Fixed the inverse interpretation of black/white listing erdgeist 2007-08-18 12:51:13 +0000
  • 3e47339b6c Added whitelisting to reimplement the WANT_CLOSED_TRACKER functionality erdgeist 2007-08-18 09:56:22 +0000
  • 992058383a Under Linux one gets SIG_ALRMs from time to time when using epoll. Ignore those. erdgeist 2007-08-18 09:29:39 +0000
  • 77af0b475f Sort of addressed a concorrency issue when receiving mutliple SIG_HUPs erdgeist 2007-08-11 13:39:36 +0000
  • 51e4b179ab off by -1... or so, strange error class erdgeist 2007-07-22 18:23:00 +0000
  • d49c1d5960 Fix endianess issue in /24 stats code erdgeist 2007-07-22 16:33:16 +0000
  • afe966b644 some subnet stats... still ugly and untested. erdgeist 2007-07-22 16:17:26 +0000
  • c0b00c0bf5 * 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 2007-07-22 00:40:10 +0000
  • 3f0a18ba08 Clean up pw-structs erdgeist 2007-07-20 10:20:02 +0000
  • c212b48bec add comment for udp spec location denis 2007-06-24 01:53:30 +0000
  • 78b7c73eab check for mafic udp id denis 2007-06-06 16:45:48 +0000
  • f3d83559e6 need more space for data because we reach this limit easily now denis 2007-05-20 14:35:22 +0000
  • 8f0aaed6b2 fixed an overflow in ot_overall_* variables denis 2007-05-04 23:08:38 +0000
  • 0f5a092f75 fix a warning denis 2007-04-10 04:00:49 +0000
  • 77e5241cf8 Clean up help and usage erdgeist 2007-04-07 00:24:17 +0000
  • 5c18293c9c New Makefile, incorporated some patches sent to me by Robin H. Johnson erdgeist 2007-04-03 11:08:17 +0000
  • bd4617a911 Try to figure out nobodys uid und gid using getpwnam erdgeist 2007-04-02 17:26:40 +0000
  • ff9d51790b Gimmi Beer! cryx 2007-04-02 17:05:06 +0000
  • 59ddb82838 Sync-daemon written in perl to sync torrents and peers between more than one tracker entity. cryx 2007-04-02 12:34:48 +0000
  • 4e9523c489 Fix endianess issue with blessed ips. Document -A feature. erdgeist 2007-03-29 15:04:06 +0000
  • 32ba028814 added the -A feature that blesses a certain IP address for administrative use (like sync) erdgeist 2007-03-28 23:24:30 +0000
  • 33774078ab 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 2007-03-27 16:09:03 +0000
  • b38104b986 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 2007-03-27 12:07:29 +0000
  • 1d2d3c9d95 Moved to tests/ erdgeist 2007-03-25 16:47:25 +0000
  • 3e610c5f60 revert previous commit denis 2007-03-17 01:26:25 +0000
  • 5791044029 endianess fix for udp scrape denis 2007-03-17 01:24:56 +0000
  • bab7c0bbb1 code cleanup and more specific comments. tracker starts now also with udp port 6969 as default denis 2007-03-16 23:37:04 +0000
  • 46605bcb2c some udp scrape style cleanup denis 2007-03-16 23:04:24 +0000
  • 8ac7768b96 support for udp scrape denis 2007-03-16 22:46:41 +0000
  • 36413e4853 fix the stats a little for not accepting udp scrapes denis 2007-03-16 20:11:22 +0000
  • 45d34960b0 udp first connect needs to be counted as a connection too denis 2007-03-15 23:33:09 +0000
  • f07ec869d8 added the udp stats to the main stats denis 2007-03-15 23:22:26 +0000
  • 5bb381e20a new modes for udp4 and tcp4 stats denis 2007-03-15 23:14:14 +0000
  • 50fe661aa7 collecting stats for udp connections (2nd try) denis 2007-03-15 21:34:02 +0000
  • f2a0c36721 collecting stats for udp connections denis 2007-03-15 21:32:14 +0000
  • 036e874ed4 fixed udp peerport endianess handling denis 2007-03-13 23:31:06 +0000
  • 92213c286a fixed udp remoteport handling denis 2007-03-13 23:24:53 +0000
  • c00c64f9da some 64bit and endianess issues with udp... erdgeist 2007-03-13 22:19:03 +0000
  • e75c3e25cd make full scrapes a bit faster, increase checkback time for udp erdgeist 2007-03-10 15:39:19 +0000
  • 5b55394cdc Port is a short, not a long erdgeist 2007-03-08 01:24:47 +0000
  • 4c3eb0216e Missing include erdgeist 2007-03-07 23:15:11 +0000
  • 5d1f07d353 Sanify handling of server sockets erdgeist 2007-03-07 22:19:00 +0000
  • 0a90216686 udp is working in theory, return_peers_for_torrent accepts a switch to request an udp answer. Fixed prototypes. erdgeist 2007-03-06 19:43:47 +0000
  • 175c37c3e8 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 2007-03-05 21:14:50 +0000
  • f1359eb652 Some clients even send plain : in their requests erdgeist 2007-03-03 02:10:52 +0000
  • a73186988f stupid mistake in remove torrent call erdgeist 2007-03-02 02:23:03 +0000
  • 2313de59e5 Count completed messages only once per peer erdgeist 2007-02-16 21:13:44 +0000
  • 70a65f2842 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. erdgeist 2007-02-04 03:29:29 +0000
  • 11a1c070ae shortened the dmem debug output denis 2007-02-04 00:37:45 +0000
  • 0d6f508882 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 erdgeist 2007-02-03 16:19:59 +0000
  • d451d32b41 made the output of the memdebug smaller denis 2007-02-02 23:39:36 +0000
  • 153b5de835 increased the interval random variation denis 2007-02-02 23:37:28 +0000
  • 222519fdff fixed the last commit. now it really counts the scrapes and fullscrapes denis 2007-02-02 21:15:46 +0000
  • 929d375b97 make the interval with random an average value around the real value and not additional denis 2007-02-01 22:34:23 +0000
  • 7ab634b6f6 Make timeouts more human readable erdgeist 2007-02-01 22:27:44 +0000