Commit Graph

169 Commits (3205a1733cfc58b6002667a270f3f94956d2dc77)

Author SHA1 Message Date
Dirk Engling 9ee006d393 Cleaned up stats return format. Also reflect APPI changes due to MT code in trackerlogic.{c,h} 2007-11-06 01:28:40 +00:00
Dirk Engling 472f8469d2 Introduce configuration dependent number of parameters in a nicer way 2007-11-02 13:13:03 +00:00
Dirk Engling a2f3ab87b0 The last experiment failed. No more accept deferral 2007-11-02 04:18:52 +00:00
Dirk Engling 6c8a69da19 Trying to accept connections only when data has come in. This is an experiment. 2007-11-02 03:21:56 +00:00
Dirk Engling 1b467d186c Allow for more than one admin ip address 2007-11-01 20:13:03 +00:00
Dirk Engling 66b21d1e28 Add more full scrape stats 2007-10-31 15:39:41 +00:00
Dirk Engling f37e510592 Reenabled syncing 2007-10-29 17:22:05 +00:00
Dirk Engling df30bc8484 Number of buckets is 1024 now
Clean all torrents now only cleans one bucket at a time
All torrents that are being worked upon in an announce are being cleaned on demoand
torrent's peer lists now keep extra counts for seeds and peers to speed up scrape and announce
Sync has gone for now. I will think up a new way to implement. The old one was way to slow.
2007-10-27 14:06:07 +00:00
Dirk Engling 7075730766 some clients chose to accidently send negative numwants 2007-10-23 00:39:15 +00:00
Dirk Engling f2f93d093f Accept clients that forget to spell announce at all... 2007-10-23 00:30:46 +00:00
Dirk Engling d16c925901 This uTorrent/1600 client requires some... measures :/ I dont like the workaround. 2007-10-23 00:01:10 +00:00
Dirk Engling 8b81b12af6 Now measure the time a clean_all_torrents takes 2007-10-22 00:44:11 +00:00
Dirk Engling df85d516c8 assume anything looking like GET /a to be an announce... 2007-10-21 05:36:10 +00:00
Dirk Engling c3eaa46d8f Last fix was not enough to get rid off those 1600er buggers. 2007-10-21 05:26:55 +00:00
Dirk Engling 75d96f1f50 Work around the stupid utorrent 1600 bug. That'll be removed after a while. 2007-10-21 05:15:35 +00:00
Dirk Engling 9268f32200 Now the Holzhammer: GET /an is announce, GET /sc is scrape. Period. 2007-10-21 04:55:19 +00:00
Dirk Engling b56035424e now accept more classes of announce fuckups 2007-10-21 04:37:37 +00:00
Dirk Engling ec5395b57c Just one more typo 2007-10-21 04:23:39 +00:00
Dirk Engling 7149cb5600 Just one more typo 2007-10-21 04:20:42 +00:00
Dirk Engling f1ad491e66 Work around more typos that might end up in torrent files as announce urls 2007-10-21 04:13:53 +00:00
Dirk Engling d5839b8407 Debug code sometimes copied too much data 2007-10-21 03:37:26 +00:00
Dirk Engling f2e615720b Fixed one leak from struct_http 2007-10-21 01:11:45 +00:00
Dirk Engling 5f35e4bef7 Be even more stupidistas-tolerant 2007-10-19 23:15:13 +00:00
Dirk Engling c69e375393 Fix debug output 2007-10-19 22:55:13 +00:00
Dirk Engling 0da6f316d6 Enable _DEBUG_HTTPERROR to avoid warning... 2007-10-19 22:36:28 +00:00
Dirk Engling 6de5b8544a Include time since startup in full scrape debug output 2007-10-19 22:20:42 +00:00
Dirk Engling 1a864b16c1 Now limit full scrape to requests sending exactly "GET /scrape HTTP/" 2007-10-19 22:13:59 +00:00
Dirk Engling d3f8013a18 Introducing multiscrape 2007-10-19 21:56:59 +00:00
Dirk Engling 463aabe5f7 Prevent url-decoding for debug by using a temp buffer 2007-10-19 21:00:57 +00:00
Dirk Engling 33530a2ac6 Those stupid "announce ?info_hash" torrents get really annoying. Fix it in announce and scrape. 2007-10-19 20:02:41 +00:00
Dirk Engling e0f88d7545 be more verbose about what full scrape consumers deliver in their http requests 2007-10-19 15:37:00 +00:00
Dirk Engling 8c3624ce9d give opentracker the missing header file 2007-10-19 03:41:23 +00:00
Dirk Engling dd7c0a3cab Must not dealloc mmaped buffers with free() 2007-10-19 03:39:04 +00:00
Dirk Engling 61204221c1 Fix misunderstandig of what libowfat thinks are seconds and what I did... 2007-10-19 02:00:53 +00:00
Dirk Engling cafb0d45fe 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. 2007-10-19 01:26:33 +00:00
Dirk Engling 53054700c8 Cannot access members after they are freed :/ 2007-10-19 00:34:56 +00:00
Dirk Engling 2c3b4e3de7 Save a lot of work when skipping through uninteresting http request parameters 2007-10-18 23:33:07 +00:00
Dirk Engling 1d4eb17452 Increase send timeout. Also use an own variable for that. 2007-10-17 22:50:48 +00:00
Dirk Engling 23465c215a io_timeout is absolute, not relative :/ 2007-10-17 21:13:13 +00:00
Dirk Engling 7d4db8015d Free iobatches on timeout 2007-10-17 20:25:18 +00:00
Dirk Engling 938d063919 HEADS UP: you need to check out the latest libowfat! Huge allocations are now taken from mmap()ed regions, not from heap anymore 2007-10-17 14:43:13 +00:00
Dirk Engling 962ad63424 Sockets we write to now do also timeout 2007-10-16 18:23:36 +00:00
Dirk Engling 5b82b40439 Exclude empty torrents from full scrape, also try to shrink full scrape buffer after it is full 2007-10-16 00:23:13 +00:00
Dirk Engling 9ffe557e6f fixed line breaks in log 2007-10-15 18:03:13 +00:00
Dirk Engling 1815dd3e53 Log all expansive operations to stderr 2007-10-15 18:01:38 +00:00
Dirk Engling 854c21cece 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 2007-10-13 17:58:20 +00:00
Dirk Engling 7a3ddcfbce since gettimeofday is rather expansive, we do only fetch time once in a 5 second period, when we are delivered a SIGALRM. 2007-10-13 17:40:37 +00:00
Dirk Engling b3f834951c make 64bit safe 2007-10-12 21:57:10 +00:00
Denis Ahrens 943b296f46 fixed some stat output 2007-10-03 22:57:35 +00:00
Dirk Engling 4319defc9c New stats for s24s code, this is debug, do not use in real world 2007-09-26 16:49:13 +00:00