Dirk Engling
2be302c225
binary search speedup was buggy.
14 years ago
Dirk Engling
842a3db5d9
Optimize binary_search function
14 years ago
Dirk Engling
6062c3afd2
Introduce the concept of an ot_net into opentracker.
14 years ago
Dirk Engling
1f5ca5c83d
Omit a warning where signed chars can't hold 0xff. Initialisen them with -1
14 years ago
Dirk Engling
276d902d61
Make accesslists thread safe. Signal handler is working in its own thread now, waiting for a signal. All other threads ignore signals.
14 years ago
Dirk Engling
409ef7dc83
Debug information only in debug mode.
14 years ago
Dirk Engling
e5f3f71d9a
Make opentracker HUGE-accesslist-ready. Parse, then sort.
14 years ago
Dirk Engling
544ff039e0
Double definition of all_torrents
14 years ago
Dirk Engling
5f2910c0b4
Add a new proxy daemon to opentracker
14 years ago
Dirk Engling
6f31485efe
Make opentracker return tracker id in stats=everything request
14 years ago
Dirk Engling
7fbeb6b010
Missed the last info_hash
14 years ago
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
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