Commit Graph

253 Commits

Author SHA1 Message Date
Dirk Engling 3205a1733c Rename source files in an ot_ fashion 2007-11-06 10:41:14 +00:00
Dirk Engling 44cbe3de53 Make to_hex thread safe. Get rid off old /24 counting code. Protect more bucket accesses by locks. 2007-11-06 03:21:03 +00:00
Dirk Engling ee8369dbcf We do now use the tools for locking buckets in order to prepare MT code 2007-11-06 01:29:57 +00:00
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 ec950245bf Locks tested. Got the test routine wrong -> Fixed. 2007-11-06 01:25:36 +00:00
Dirk Engling aa25c390dd Introducing first tools to make opentracker multithreaded. 2007-11-03 13:43:05 +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 62c528e88c I accidently put space on the list of non-terminating characters... 2007-10-23 00:44:22 +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 d751f98e29 Be really relaxed now about what to accept in values... 2007-10-23 00:27:00 +00:00
Dirk Engling 0f6628b7f8 Allow @ in values. This seems to fix some clients 2007-10-23 00:22:50 +00:00
Dirk Engling 20373192a4 Allow = in values. This seems to fix some clients 2007-10-23 00:20:05 +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 96a43699e8 Now measure the time a clean_all_torrents takes 2007-10-22 00:57:57 +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 71436d6b24 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. 2007-10-19 14:41:30 +00:00
Dirk Engling b7e8a852e8 Remove an unused variable 2007-10-19 05:23:04 +00:00
Dirk Engling 547463a21f Release exactly all unused bytes in mmap allocation. 2007-10-19 05:21:01 +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 6891fa78bc Increase check interval for timeouted sockets to 10 seconds. That may prevent some disrupted scrapes. 2007-10-19 01:27:23 +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