Commit Graph

28 Commits

Author SHA1 Message Date
Dirk Engling bd6aaee3ef Introducing the concept of vectors of nets into opentracker 2009-08-26 21:22:24 +00:00
Dirk Engling 276d902d61 Make accesslists thread safe. Signal handler is working in its own thread now, waiting for a signal. All other threads ignore signals. 2009-07-17 18:00:26 +00:00
Dirk Engling 409ef7dc83 Debug information only in debug mode. 2009-07-17 15:53:35 +00:00
Dirk Engling e5f3f71d9a Make opentracker HUGE-accesslist-ready. Parse, then sort. 2009-07-17 15:52:39 +00:00
Dirk Engling 7fbeb6b010 Missed the last info_hash 2009-07-15 00:37:23 +00:00
Dirk Engling 936d0ed2f1 Parse accesslist file by mmaping the whole thing and searching for lines by ourself. fgets is slooooooow on linux. 2009-07-14 21:22:02 +00:00
Dirk Engling f7cb2cf545 Be more verbose if the accesslist can not be found 2009-07-14 13:14:45 +00:00
Dirk Engling f6025394bd Only get old accesslist value shortly before freeing it 2009-07-14 13:03:01 +00:00
Dirk Engling eda672e253 Reloading accesslists left a wide window for race conditions. 2009-07-14 12:32:41 +00:00
Dirk Engling baa8b31981 Make accesslist function check for the correct signal 2009-07-01 02:48:56 +00:00
Dirk Engling ad7dbf0c7c Remove unnecessary =NULL initialization of static pointers. 2009-06-17 15:07:38 +00:00
Dirk Engling 43e07caf4e Display v4 addresses in v4 mode nicer 2009-06-16 12:17:53 +00:00
Dirk Engling a4af3583f2 Fix white spaces
Introduce loading tracker states with -l
Alter tracker state to a human readable form
2009-03-17 23:57:19 +00:00
Dirk Engling abe840d529 Add a stat option the count bucket stalls
Add an iterator for all torrents. It's slower but for stats it's okay.
Move some stats collection stuff to the new iterator. More to come.
Start a "report all stats" page.
Start fixing the code to identify "busy" networks.
Add the concept of hosts allowed to proxy.
Add a parser for the X-Forwarded-For: HTTP header.
Clean up HTTP Header handling code. (Remove some left overs of now vanished sync code).
2009-03-04 14:35:21 +00:00
Dirk Engling 6337649b08 V6 2009-01-13 22:41:16 +00:00
Dirk Engling 508e170d30 Fix incorrect prototype for accesslist_deinit 2009-01-02 07:52:17 +00:00
Dirk Engling 04e5bac4c3 Handle program end more politely 2008-12-07 03:50:47 +00:00
Dirk Engling fa6c870315 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
2008-12-06 18:45:59 +00:00
Dirk Engling c0dab929ab The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 2008-11-28 22:21:09 +00:00
Dirk Engling 7dcd727ce6 Whitespace fixes 2008-10-28 01:27:21 +00:00
Dirk Engling 344067166c Fix debug output for addresses >127 2008-10-17 15:21:11 +00:00
Dirk Engling 3abbbe9d78 Enabled debug output, fixed blessed ip permissions 2008-10-05 12:28:57 +00:00
Dirk Engling e076dab883 added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:48 +00:00
Dirk Engling e767fae72a Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
Dirk Engling d577adc79b Move blessed IP handling code to accesslist objects 2007-12-03 00:48:48 +00:00
Dirk Engling 9df7d28415 static bufs are not shared anymore, even if that means more memory. 2007-11-21 01:54:00 +00:00
Dirk Engling 839a4bcf4d missing include 2007-11-13 00:01:24 +00:00
Dirk Engling f03b2740dd Moving accesslist stuff to its own object 2007-11-12 04:38:43 +00:00