Dirk Engling
c958c53d40
unify lock and unlock code style
13 years ago
Dirk Engling
4e7e39dc1c
Use a self pipe to wake from io_wait when a thread finished his work.
14 years ago
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
14 years ago
Dirk Engling
6337649b08
V6
14 years ago
Dirk Engling
823f93a96f
Make opentracker ANSI C again.
14 years ago
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.
14 years ago
Dirk Engling
343169385e
Make all torrents in their buckets sorted again.
14 years ago
Dirk Engling
cec9b44738
Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNT
14 years ago
Dirk Engling
c0dab929ab
The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
14 years ago
Dirk Engling
7dcd727ce6
Whitespace fixes
14 years ago
Denis Ahrens
32477fb1ba
fixed typo
14 years ago
Dirk Engling
e767fae72a
Introduce some kind of versioning
15 years ago
Dirk Engling
7df4ce8fc7
Simplify includes
15 years ago
Dirk Engling
00809d596f
Introducing compression task flags
15 years ago
Dirk Engling
2bdd11fc80
Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around
15 years ago
Dirk Engling
032224f150
Cleanup now moved to its own thread, too
15 years ago
Dirk Engling
c4e5c983a5
Reflect new task-classes model in mutex queue
15 years ago
Dirk Engling
89c7f40a16
tasklist code now tested in a multi threaded environment.
15 years ago
Dirk Engling
adac3bb2ab
Introducing the workqueue
15 years ago
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.
15 years ago
Dirk Engling
3205a1733c
Rename source files in an ot_ fashion
15 years ago
Dirk Engling
ec950245bf
Locks tested. Got the test routine wrong -> Fixed.
15 years ago
Dirk Engling
aa25c390dd
Introducing first tools to make opentracker multithreaded.
15 years ago