1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-13 08:20:06 +00:00
Commit Graph

479 Commits

Author SHA1 Message Date
erdgeist
2a17f847ae Fix statedump 2009-06-17 13:37:11 +00:00
erdgeist
2a94892890 Display v4 addresses in v4 mode nicer 2009-06-16 12:17:53 +00:00
erdgeist
6c19143bc1 Major rewrite of live bad network logging. You can now limit logging to any netmask. HTTP interface for that coming soon. 2009-06-15 14:41:47 +00:00
erdgeist
d113912101 Log networks in its old form has been disabled. Live logging may come back soon. 2009-06-15 14:40:36 +00:00
erdgeist
f0b37172bf Dont log connection id missmatches anymore 2009-06-15 14:40:06 +00:00
erdgeist
a713514a78 Make our stats xml validate again 2009-03-25 12:43:12 +00:00
erdgeist
91f5fa20a7 include overall completed count in stats 2009-03-24 16:55:28 +00:00
erdgeist
a7cb039b67 There seems to be more broken v6 APIs than just the OpenBSD one. Linux smells as well. 2009-03-18 14:53:35 +00:00
erdgeist
5174c61a23 If we don't want v6, tell libowfat not to worry about it. 2009-03-18 14:49:13 +00:00
erdgeist
bd6695bded Fix XML syntax 2009-03-18 02:33:47 +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
a58bce83ad Found some minor issues in busy network detection code. 2009-03-12 22:53:30 +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
255ac58971 Add a everything stats page. So you won't have to remember what all those switches were.
Remove the prepared Add/Remove-Torrent count until we implement it.
Remove the start/stop count until we implement it.
2009-03-04 15:33:44 +00:00
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).
2009-03-04 14:35:21 +00:00
erdgeist
72a1564ca1 Value of off is not used, so don't calculate it 2009-03-03 01:24:02 +00:00
erdgeist
a6fe338040 Remove superfluous test for == NULL, when variable has been used, anyway 2009-03-03 01:22:50 +00:00
erdgeist
02078aba27 Reset delta_torrentcount to zero on each pass 2009-02-20 12:31:55 +00:00
erdgeist
b2bd9f7d91 Formatting 2009-02-20 12:31:17 +00:00
erdgeist
928dc36f74 Formatting 2009-02-20 12:23:59 +00:00
erdgeist
f8af5c4b09 Forgot to notify central counter about torrent removal 2009-02-20 11:07:30 +00:00
erdgeist
ff3c0feab5 Add workaround to openbsd's broken v6 API 2009-02-10 14:49:38 +00:00
erdgeist
f1ce4ea499 unify lock and unlock code style 2009-02-10 14:49:11 +00:00
erdgeist
957981ac73 make live sync aware of v6 mapped v4 addresses 2009-02-03 17:10:16 +00:00
erdgeist
1a40cebcbd Read action codes from correct location and tell ot_stats the correct number of incoming peers. 2009-02-03 17:00:51 +00:00
erdgeist
4c0d5c1c08 Formatting 2009-02-03 16:46:31 +00:00
erdgeist
9c25f99b3d Reverse logic... do only fail if scan_ip6 cant parse 2009-02-03 16:46:16 +00:00
erdgeist
01408992b7 Reverse logic... do only sync those NOT coming from multi cast 2009-02-03 16:45:44 +00:00
denis
c3003dfd6f decrease the udp multicast packetsize so it fits into one ether frame 2009-02-03 14:41:17 +00:00
erdgeist
6e3ef99daf Forgot to copy the stats?mode=tcp4 parameter 2009-02-03 12:21:36 +00:00
erdgeist
f8185878fb Make snprintf write to the correct location 2009-01-26 11:30:10 +00:00
erdgeist
1d821b95cb Lot of Gehacktes around this keyword scanner. Don't return a match if string to compare is shorter than key from table. 2009-01-26 10:33:46 +00:00
erdgeist
de5dbad258 This memmove was for real... 2009-01-21 00:11:57 +00:00
erdgeist
b019607ba5 Limit comparison of strings to the length of the shorter string 2009-01-19 18:22:25 +00:00
erdgeist
2d3718151d Fix a pointer arithmetic issue leading to incorrect peer data being copied. Allocate correct size for debugbuffer. Expect exact values on find keywords, not only prefix match. 2009-01-16 04:17:22 +00:00
erdgeist
0b875273d4 Remove debug message 2009-01-16 02:28:54 +00:00
erdgeist
f12fa4c362 Use a self pipe to wake from io_wait when a thread finished his work. 2009-01-16 02:26:50 +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
4ced0484ab Some premature optimization lead to always only 8bytes of ot_peers being copied 2009-01-15 22:10:54 +00:00
erdgeist
02b3abbab6 Make v4 and v6 modes v4/v6-ONLY 2009-01-15 16:20:47 +00:00
erdgeist
930495a0db We sent an incorrect reply dictionary vor v6 announces 2009-01-15 16:20:18 +00:00
erdgeist
d1a452e98a fix parser 2009-01-14 00:05:06 +00:00
erdgeist
131211b4da V6 2009-01-13 22:41:17 +00:00
erdgeist
779d6c235f * http and udp routines now use thread local buffers passed in workstruct containers. In other words they do not use static_buffer anymore and are considered to be thread safe.
* the new workstruct also introduces a well defined buffer and result passing path
* a new function scan_find_keywords is a wrapper around scan_urlencoded_query that maps keys in url to values passed in an array of ot_keywords structs
* this new function cleans up much of url parameter parsing work, where read_ptr and write_ptr have been introduced rather than the confusing char *c, *data variables
* I now use memcmp instead of byte_diff to allow compiler to optimize constant size string compares
* got rid of UTORRENT_1600_WORKAROUND
* livesync_ticker is now only called from one (currently main) thread to avoid race conditions
2009-01-05 18:05:39 +00:00
erdgeist
8bdc0d73f6 Make opentracker ANSI C again. 2009-01-03 03:25:37 +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
548e2b8338 Introduce new flag WANT_SYNC_SCRAPE 2009-01-02 07:55:11 +00:00
erdgeist
20257202af Fix incorrect prototype for accesslist_deinit 2009-01-02 07:52:17 +00:00
erdgeist
38c073e6dd minor white space 2009-01-01 17:49:50 +00:00
erdgeist
5c99e50e25 minoe white space 2009-01-01 17:44:04 +00:00