Commit Graph

33 Commits

Author SHA1 Message Date
Dirk Engling a4af3583f2 Fix white spaces
Introduce loading tracker states with -l
Alter tracker state to a human readable form
2009-03-17 23:57:19 +00:00
Dirk Engling aa6467cc21 Re-implement logging busy networks to handle v6 API.
Implement a state dump for later reparsing.
2009-03-12 18:47:02 +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 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 32edd0dff8 Fix: auto increment in += is not a post increment... 2008-12-07 13:14:24 +00:00
Dirk Engling 3557e9edd7 Fix post increase on wrong pointer type. 2008-12-07 12:04:43 +00:00
Dirk Engling 04e5bac4c3 Handle program end more politely 2008-12-07 03:50:47 +00:00
Dirk Engling fa6c870315 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
2008-12-06 18:45:59 +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
Dirk Engling 14f0a3ceea Reverting last commit. Debug effect not seen. 2008-10-07 23:53:29 +00:00
Dirk Engling ad7c574c0e allow threads to be named. not posix compliant. 2008-10-07 23:44:59 +00:00
Dirk Engling 303e08e7c1 Cosmetics 2008-10-06 02:02:12 +00:00
Dirk Engling e076dab883 added live sync code
added a config file parser
added tracker id
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:48 +00:00
Denis Ahrens be02614464 use a more reasonable compression level 2008-09-14 17:11:19 +00:00
Dirk Engling 1b6a33a0f8 sys/param.h needed under openbsd 2008-01-17 07:52:17 +00:00
Dirk Engling e767fae72a Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
Dirk Engling 50275a9462 Be a little more verbose about why increases fail 2007-12-04 23:11:05 +00:00
Dirk Engling 3d3378e6a6 Drop ot_{byte,word,dword} and use uint{8,16,32}_t 2007-12-03 00:50:33 +00:00
Dirk Engling 0832973340 Fixed call to deflate() with wrong flag in endgame 2007-11-25 18:59:46 +00:00
Dirk Engling b697b68eac Debug settings for chunk size were _way_ to low for production 2007-11-24 11:09:18 +00:00
Dirk Engling 1bbcf71b56 Completely rewritten fullscrape code. All assumptions on how deflate() works were a little naive. Needs more error checking and testing. 2007-11-23 18:15:38 +00:00
Dirk Engling d44c5bd162 Introducing compression for fullscrapes and tpbs stats 2007-11-22 04:39:08 +00:00
Dirk Engling a8821b42a4 Documentation fix 2007-11-21 01:54:31 +00:00
Dirk Engling dfe7ba6910 Fullscrape now cleanly finalizes its thread 2007-11-19 21:14:09 +00:00
Dirk Engling 7b6b26e7ca Missing include for htonl() 2007-11-19 01:02:10 +00:00
Dirk Engling 53a7c09bc0 Full scrapes are now being delivered in different modes, as triggered by stats&mode=tpbs 2007-11-18 16:47:37 +00:00
Dirk Engling e1aa9168b4 introducing multithreaded full scrape creation. 2007-11-16 00:23:42 +00:00
Dirk Engling 181afb7892 Increase full scrape chunk size to 1/2meg 2007-11-13 00:33:55 +00:00
Dirk Engling f6409aa752 Fix typos in documenation 2007-11-12 17:26:01 +00:00
Dirk Engling 6cfb756fc3 Some in code documentation to make Denis happy :) 2007-11-12 16:54:21 +00:00
Dirk Engling 2bcac0ab2b Fullscrape is thread safe now. 2007-11-12 01:38:08 +00:00