Commit Graph

490 Commits (936d0ed2f1d9be0c238fa328f5b6b48711a3b742)
 

Author SHA1 Message Date
Dirk Engling 936d0ed2f1 Parse accesslist file by mmaping the whole thing and searching for lines by ourself. fgets is slooooooow on linux. 14 years ago
Dirk Engling bb1e76c1a4 Order peers by whether they seed. This way clients can chose if they prefer leechers (at the beginning) or leechers (at the end of the list). 14 years ago
Dirk Engling f7cb2cf545 Be more verbose if the accesslist can not be found 14 years ago
Dirk Engling 73f781c0a3 Don't default the incoming port to 6881 but rather use 0 to indicate a less than valid announce 14 years ago
Dirk Engling f6025394bd Only get old accesslist value shortly before freeing it 14 years ago
Dirk Engling eda672e253 Reloading accesslists left a wide window for race conditions. 14 years ago
Dirk Engling 2aca3aafcf Make attempts to access to unauthorized torrents more verbose. 14 years ago
Dirk Engling baa8b31981 Make accesslist function check for the correct signal 14 years ago
Dirk Engling 0c0a4533b7 Fixed an incorrect peer count in udp responses. Credits to Theron Lewis. 14 years ago
Dirk Engling ad7dbf0c7c Remove unnecessary =NULL initialization of static pointers. 14 years ago
Dirk Engling b6fdc5433a Allow /stats to be located anywhere in your trackers path 14 years ago
Dirk Engling 6abed54fd7 Fix statedump 14 years ago
Dirk Engling 43e07caf4e Display v4 addresses in v4 mode nicer 14 years ago
Dirk Engling bc521d9911 Major rewrite of live bad network logging. You can now limit logging to any netmask. HTTP interface for that coming soon. 14 years ago
Dirk Engling 1e8b74da9a Log networks in its old form has been disabled. Live logging may come back soon. 14 years ago
Dirk Engling 506c7883f7 Dont log connection id missmatches anymore 14 years ago
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 15 years ago
Dirk Engling c958c53d40 unify lock and unlock code style 15 years ago
Dirk Engling 3f59235960 make live sync aware of v6 mapped v4 addresses 15 years ago
Dirk Engling b591b15f2f Read action codes from correct location and tell ot_stats the correct number of incoming peers. 15 years ago
Dirk Engling faa38f1518 Formatting 15 years ago
Dirk Engling fae0329fe9 Reverse logic... do only fail if scan_ip6 cant parse 15 years ago
Dirk Engling bf362a914d Reverse logic... do only sync those NOT coming from multi cast 15 years ago
Denis Ahrens 6c618f1015 decrease the udp multicast packetsize so it fits into one ether frame 15 years ago
Dirk Engling b8394881a4 Forgot to copy the stats?mode=tcp4 parameter 15 years ago
Dirk Engling 74d96438c6 Make snprintf write to the correct location 15 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. 15 years ago
Dirk Engling 78626b6453 This memmove was for real... 15 years ago
Dirk Engling 679016139d Limit comparison of strings to the length of the shorter string 15 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. 15 years ago
Dirk Engling 0b6f30c847 Remove debug message 15 years ago
Dirk Engling 4e7e39dc1c Use a self pipe to wake from io_wait when a thread finished his work. 15 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 15 years ago
Dirk Engling 83d62ba0fb Some premature optimization lead to always only 8bytes of ot_peers being copied 15 years ago