Commit Graph

46 Commits (62807ad205ea7d4694a69806419ba9d3fbae22bf)

Author SHA1 Message Date
Dirk Engling 62807ad205 deflatePending ist not available everywhere. Just treat the (very rare) case of some data being left over like all other reallocatables 2024-04-15 17:58:34 +02:00
Dirk Engling 7c633c259e clang-format 2024-04-15 00:39:02 +02:00
Dirk Engling bd4992435c Add proper parsing for the gzip content encoding 2024-04-13 14:04:18 +02:00
Dirk Engling 35f55290f3 Make chunked transfers use gzip also 2024-04-13 12:51:04 +02:00
Dirk Engling 1a70d9f9ef First shot on chunked transfers 2024-04-13 00:47:29 +02:00
Dirk Engling 2afc4893bf Prepare opentracker for dual stack capabilities 2024-04-03 22:25:30 +02:00
Dirk Engling 95f1780f0b Split huge iovecs over multiple io_batches 2021-04-24 03:25:30 +02:00
Dirk Engling e87978860b gzip iovecs always end on the boundary and don't need to be fixed 2021-04-22 03:03:55 +02:00
Dirk Engling bfc398182f Rework fullscrape worker, unifying non-gzip and gzip code was a bad idea 2021-04-21 14:41:59 +02:00
Dirk Engling d1e6e4486c incorporate a more verbose ascii dump, provided by Tom <tom@foscore.com> 2017-04-28 15:42:17 +02:00
erdgeist eed4a42292 Forgot variable declaration 2012-05-31 22:58:36 +00:00
erdgeist f6c9dd8a13 reduce zlib warnings to when there really is something failing 2012-05-29 22:10:14 +00:00
denis 1968f47d74 silenced some clang warnings 2011-11-16 00:41:16 +00:00
erdgeist c7ed890222 Fix white spaces
Introduce loading tracker states with -l
Alter tracker state to a human readable form
2009-03-17 23:57:20 +00:00
erdgeist eec51a872c Re-implement logging busy networks to handle v6 API.
Implement a state dump for later reparsing.
2009-03-12 18:47:02 +00:00
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 2009-01-15 23:01:36 +00:00
erdgeist 131211b4da V6 2009-01-13 22:41:17 +00:00
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 bca8bee623 Fix: auto increment in += is not a post increment... 2008-12-07 13:14:24 +00:00
erdgeist 5f5007883e Fix post increase on wrong pointer type. 2008-12-07 12:04:43 +00:00
erdgeist c6947b160f Handle program end more politely 2008-12-07 03:50:51 +00:00
erdgeist 08c7162783 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:46:00 +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
erdgeist 0deb06d544 Reverting last commit. Debug effect not seen. 2008-10-07 23:53:29 +00:00
erdgeist ec0affa97d allow threads to be named. not posix compliant. 2008-10-07 23:44:59 +00:00
erdgeist 01ea1648d8 Cosmetics 2008-10-06 02:02:12 +00:00
erdgeist e534db03c6 added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:51 +00:00
denis 3655976223 use a more reasonable compression level 2008-09-14 17:11:19 +00:00
erdgeist 7050e027d3 sys/param.h needed under openbsd 2008-01-17 07:52:17 +00:00
erdgeist c28cf398fd Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
erdgeist a146a32885 Be a little more verbose about why increases fail 2007-12-04 23:11:05 +00:00
erdgeist 89f291566b Drop ot_{byte,word,dword} and use uint{8,16,32}_t 2007-12-03 00:50:33 +00:00
erdgeist 9d86780a74 Fixed call to deflate() with wrong flag in endgame 2007-11-25 18:59:46 +00:00
erdgeist e3103d30f7 Debug settings for chunk size were _way_ to low for production 2007-11-24 11:09:18 +00:00
erdgeist 8f7ef4b2ea 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
erdgeist b1c8723609 Introducing compression for fullscrapes and tpbs stats 2007-11-22 04:39:08 +00:00
erdgeist a85798279b Documentation fix 2007-11-21 01:54:31 +00:00
erdgeist 6d09527ed8 Fullscrape now cleanly finalizes its thread 2007-11-19 21:14:09 +00:00
erdgeist 3528752c7b Missing include for htonl() 2007-11-19 01:02:10 +00:00
erdgeist 8d5f221785 Full scrapes are now being delivered in different modes, as triggered by stats&mode=tpbs 2007-11-18 16:47:37 +00:00
erdgeist 6458a37d82 introducing multithreaded full scrape creation. 2007-11-16 00:23:42 +00:00
erdgeist 91a3a3b342 Increase full scrape chunk size to 1/2meg 2007-11-13 00:33:55 +00:00
erdgeist 3eb88c5cc6 Fix typos in documenation 2007-11-12 17:26:01 +00:00
erdgeist 71e9ec887c Some in code documentation to make Denis happy :) 2007-11-12 16:54:21 +00:00
erdgeist 31f5b923eb Fullscrape is thread safe now. 2007-11-12 01:38:08 +00:00