Commit Graph

23 Commits (531ebd494953ec28f2639825cd48060296b5f438)

Author SHA1 Message Date
erdgeist 877e3cfbb0 Remove unnecessary =NULL initialization of static pointers. 16 years ago
erdgeist 9297967f85 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).
16 years ago
erdgeist f1ce4ea499 unify lock and unlock code style 16 years ago
erdgeist f12fa4c362 Use a self pipe to wake from io_wait when a thread finished his work. 16 years ago
erdgeist 66c906d5d3 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 16 years ago
erdgeist 131211b4da V6 16 years ago
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