Commit Graph

524 Commits (8bbced15154734569b936ecd5903b4423f581d3c)
 

Author SHA1 Message Date
Dirk Engling b994a7befa Make our stats xml validate again 14 years ago
Dirk Engling 87b156262d include overall completed count in stats 14 years ago
Dirk Engling 60bc1c7424 There seems to be more broken v6 APIs than just the OpenBSD one. Linux smells as well. 14 years ago
Dirk Engling dc7f849827 If we don't want v6, tell libowfat not to worry about it. 14 years ago
Dirk Engling c8f053f955 Fix XML syntax 14 years ago
Dirk Engling a4af3583f2 Fix white spaces
Introduce loading tracker states with -l
Alter tracker state to a human readable form
14 years ago
Dirk Engling 695c079a25 Found some minor issues in busy network detection code. 14 years ago
Dirk Engling aa6467cc21 Re-implement logging busy networks to handle v6 API.
Implement a state dump for later reparsing.
14 years ago
Dirk Engling 50301645a4 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.
14 years ago
Dirk Engling abe840d529 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).
14 years ago
Dirk Engling e6b16afb19 Value of off is not used, so don't calculate it 14 years ago
Dirk Engling bd44fd7c4d Remove superfluous test for == NULL, when variable has been used, anyway 14 years ago
Dirk Engling 7628ed7201 Reset delta_torrentcount to zero on each pass 14 years ago
Dirk Engling d418d1ad81 Formatting 14 years ago
Dirk Engling 9357435207 Formatting 14 years ago
Dirk Engling 57b8f256d5 Forgot to notify central counter about torrent removal 14 years ago
Dirk Engling b3f716a3e7 Add workaround to openbsd's broken v6 API 14 years ago
Dirk Engling c958c53d40 unify lock and unlock code style 14 years ago
Dirk Engling 3f59235960 make live sync aware of v6 mapped v4 addresses 14 years ago
Dirk Engling b591b15f2f Read action codes from correct location and tell ot_stats the correct number of incoming peers. 14 years ago
Dirk Engling faa38f1518 Formatting 14 years ago
Dirk Engling fae0329fe9 Reverse logic... do only fail if scan_ip6 cant parse 14 years ago
Dirk Engling bf362a914d Reverse logic... do only sync those NOT coming from multi cast 14 years ago
Denis Ahrens 6c618f1015 decrease the udp multicast packetsize so it fits into one ether frame 14 years ago
Dirk Engling b8394881a4 Forgot to copy the stats?mode=tcp4 parameter 14 years ago
Dirk Engling 74d96438c6 Make snprintf write to the correct location 14 years ago
Dirk Engling 4b77b8b776 Lot of Gehacktes around this keyword scanner. Don't return a match if string to compare is shorter than key from table. 14 years ago
Dirk Engling 78626b6453 This memmove was for real... 14 years ago
Dirk Engling 679016139d Limit comparison of strings to the length of the shorter string 14 years ago
Dirk Engling b73fc5042c 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. 14 years ago
Dirk Engling 0b6f30c847 Remove debug message 14 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 83d62ba0fb Some premature optimization lead to always only 8bytes of ot_peers being copied 14 years ago
Dirk Engling 9b12b745ae Make v4 and v6 modes v4/v6-ONLY 14 years ago
Dirk Engling eb98ff8fe3 We sent an incorrect reply dictionary vor v6 announces 14 years ago
Dirk Engling c6dd258244 fix parser 14 years ago
Dirk Engling 6337649b08 V6 14 years ago
Dirk Engling b2ca164922 * 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
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 621c8462be Introduce new flag WANT_SYNC_SCRAPE 14 years ago
Dirk Engling 508e170d30 Fix incorrect prototype for accesslist_deinit 14 years ago
Dirk Engling 2cf9b92729 minor white space 14 years ago
Dirk Engling ea4bff6bdc minoe white space 14 years ago
Dirk Engling e6ceb56796 Fix badly formed bencoded answer to stopped events 14 years ago
Dirk Engling d0c417d9f3 Fix: Did not time stamp a torrent correctly, that once timed out and came back to life 15 years ago
Dirk Engling 6b57113bf0 Propose a scrape sync protocol. 15 years ago
Dirk Engling 343169385e Make all torrents in their buckets sorted again. 15 years ago
Dirk Engling 32edd0dff8 Fix: auto increment in += is not a post increment... 15 years ago