erdgeist
8bdc0d73f6
Make opentracker ANSI C again.
16 years ago
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.
16 years ago
erdgeist
a9ab9b0c0d
Make all torrents in their buckets sorted again.
16 years ago
erdgeist
256f2c6f98
Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT
16 years ago
erdgeist
334c6e4bbb
The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
16 years ago
erdgeist
daaee855b2
Whitespace fixes
16 years ago
denis
55d03b9a1b
fixed typo
16 years ago
erdgeist
c28cf398fd
Introduce some kind of versioning
17 years ago
erdgeist
b0e4ebbbf2
Simplify includes
17 years ago
erdgeist
4bf12406fb
Introducing compression task flags
17 years ago
erdgeist
e9d49af9fa
Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around
17 years ago
erdgeist
49ba269b9d
Cleanup now moved to its own thread, too
17 years ago
erdgeist
9cd6e355be
Reflect new task-classes model in mutex queue
17 years ago
erdgeist
d3963803ca
tasklist code now tested in a multi threaded environment.
17 years ago
erdgeist
cf26f2ab23
Introducing the workqueue
17 years ago
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.
17 years ago
erdgeist
5749f1d8fe
Rename source files in an ot_ fashion
17 years ago
erdgeist
3bf7878833
Locks tested. Got the test routine wrong -> Fixed.
17 years ago
erdgeist
a6b8311812
Introducing first tools to make opentracker multithreaded.
17 years ago