Commit Graph

23 Commits (b252679b2525640c095a36bd0b946044b69cee0e)

Author SHA1 Message Date
Dirk Engling ad7dbf0c7c Remove unnecessary =NULL initialization of static pointers. 2009-06-17 15:07:38 +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 c958c53d40 unify lock and unlock code style 2009-02-10 14:49:11 +00:00
Dirk Engling 4e7e39dc1c Use a self pipe to wake from io_wait when a thread finished his work. 2009-01-16 02:26:50 +00:00
Dirk Engling 0987307ea3 Add comments, rename our struct http_data h to cookie, all clientsockets to sock, all size_t from socket_recvs to byte_count. Make signal handler set default handler for the second SIGINT 2009-01-15 23:01:36 +00:00
Dirk Engling 6337649b08 V6 2009-01-13 22:41:16 +00:00
Dirk Engling 823f93a96f Make opentracker ANSI C again. 2009-01-03 03:25:34 +00:00
Dirk Engling 49ec59cbbe * opentracker now drops permissions in correct order and really chroots() if ran as root
* lock passing between add_peer_to_torrent and return_peers_for_torrent is now avoided by providing a more general add_peer_to_torrent_and_return_peers function that can be used with NULL parameters to not return any peers (in sync case)
* in order to keep a fast overview how many torrents opentracker maintains, every mutex_bucket_unlock operation expects an additional integer parameter that tells ot_mutex.c how many torrents have been added or removed. A function mutex_get_torrent_count has been introduced.
2009-01-02 08:57:49 +00:00
Dirk Engling 343169385e Make all torrents in their buckets sorted again. 2008-12-08 02:23:21 +00:00
Dirk Engling cec9b44738 Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT 2008-12-06 00:41:12 +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
Denis Ahrens 32477fb1ba fixed typo 2008-10-28 00:30:08 +00:00
Dirk Engling e767fae72a Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
Dirk Engling 7df4ce8fc7 Simplify includes 2007-12-03 00:49:24 +00:00
Dirk Engling 00809d596f Introducing compression task flags 2007-11-22 04:38:25 +00:00
Dirk Engling 2bdd11fc80 Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around 2007-11-20 02:55:13 +00:00
Dirk Engling 032224f150 Cleanup now moved to its own thread, too 2007-11-19 21:10:53 +00:00
Dirk Engling c4e5c983a5 Reflect new task-classes model in mutex queue 2007-11-18 16:46:34 +00:00
Dirk Engling 89c7f40a16 tasklist code now tested in a multi threaded environment. 2007-11-15 03:35:03 +00:00
Dirk Engling adac3bb2ab Introducing the workqueue 2007-11-14 12:59:58 +00:00
Dirk Engling fed78043a6 No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable. 2007-11-06 11:58:12 +00:00
Dirk Engling 3205a1733c Rename source files in an ot_ fashion 2007-11-06 10:41:14 +00:00