16 Commits

Author SHA1 Message Date
erdgeist
2df09905f5 * 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:53 +00:00
erdgeist
a9ab9b0c0d Make all torrents in their buckets sorted again. 2008-12-08 02:23:21 +00:00
erdgeist
256f2c6f98 Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT 2008-12-06 00:41:12 +00:00
erdgeist
334c6e4bbb 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:10 +00:00
erdgeist
daaee855b2 Whitespace fixes 2008-10-28 01:27:22 +00:00
denis
55d03b9a1b fixed typo 2008-10-28 00:30:08 +00:00
erdgeist
c28cf398fd Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
erdgeist
b0e4ebbbf2 Simplify includes 2007-12-03 00:52:05 +00:00
erdgeist
4bf12406fb Introducing compression task flags 2007-11-22 04:38:25 +00:00
erdgeist
e9d49af9fa 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
erdgeist
49ba269b9d Cleanup now moved to its own thread, too 2007-11-19 21:10:53 +00:00
erdgeist
9cd6e355be Reflect new task-classes model in mutex queue 2007-11-18 16:46:34 +00:00
erdgeist
d3963803ca tasklist code now tested in a multi threaded environment. 2007-11-15 03:35:03 +00:00
erdgeist
cf26f2ab23 Introducing the workqueue 2007-11-14 12:59:58 +00:00
erdgeist
8900cc0dd9 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:32 +00:00
erdgeist
5749f1d8fe Rename source files in an ot_ fashion 2007-11-06 10:41:14 +00:00