Dirk Engling
e52170435f
sync with git
5 years ago
Dirk Engling
4d9fd27746
Dont make srandomdev the default, it exists only in BSDs
11 years ago
Denis Ahrens
4eec224a39
new flag to enforce gzip even if client did not request it
11 years ago
Dirk Engling
9bf6cdb058
Report connection id missmatch count
11 years ago
Dirk Engling
1bbbeb8db3
Init prng before udp code needs it.
11 years ago
Dirk Engling
2391244772
Adding rijndael code for udp connection id calculation
11 years ago
Dirk Engling
dd56b16d0c
enable proxy.debug target
13 years ago
Dirk Engling
79a64865d9
Get rid of SYNC_SCRAPE madness. It's overkill and no one uses it.
13 years ago
Dirk Engling
a3aacfd6a6
Allow logging of completed events to syslog
14 years ago
Dirk Engling
ceafe85123
Need to compile sources for proxy
14 years ago
Dirk Engling
11aa190c74
Add source files to proxy project
14 years ago
Dirk Engling
1fbf2f4706
Going to the forest, spotting woodpeckers
14 years ago
Dirk Engling
e87008f160
add option to log the numwants over time
14 years ago
Dirk Engling
72ea78a6aa
Put the WANT_MODEST_FULLSCRAPES option into Makefile
14 years ago
Dirk Engling
2ab7c05823
Enable Networks debugging in Makefile
14 years ago
Dirk Engling
5f2910c0b4
Add a new proxy daemon to opentracker
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
b3f716a3e7
Add workaround to openbsd's broken v6 API
15 years ago
Dirk Engling
6337649b08
V6
15 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
15 years ago
Dirk Engling
621c8462be
Introduce new flag WANT_SYNC_SCRAPE
15 years ago
Dirk Engling
384028829b
Aid spotting bad clients...
15 years ago
Dirk Engling
c0dab929ab
The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
15 years ago
Dirk Engling
ee330be078
Introduce vector debuggin code and stats restriction options
15 years ago
Dirk Engling
14f0a3ceea
Reverting last commit. Debug effect not seen.
15 years ago
Dirk Engling
aa7f40b77c
Add config option for naming threads
15 years ago
Dirk Engling
499f07b3f0
Add _DEBUG flag for debug builds. This flag enables some diagnostic messages.
15 years ago
Dirk Engling
76416b5c1c
Cleaning up Build time options. Also add ot_livesync.[ch]
15 years ago
Dirk Engling
3dda0c7c7b
Typo in Makefile, thanks to Steffen.
15 years ago
Dirk Engling
a7c47dce53
Introducing live busy network detection.
16 years ago
Dirk Engling
a7cfb64181
But keep Makefile in the libowfat is at ../libowfat state.
16 years ago
Dirk Engling
e767fae72a
Introduce some kind of versioning
16 years ago
Dirk Engling
65bf76b204
Introduce new ot_http.c and ot_http.h
16 years ago
Dirk Engling
31c2a9fe03
Make allowing gzip a Makefile tunable
16 years ago
Dirk Engling
690786b762
Forgot to specify -pthread when using threads
16 years ago
Dirk Engling
f03b2740dd
Moving accesslist stuff to its own object
16 years ago
Dirk Engling
c048749014
Reflect changes in ot_iovec and ot_fullscrape in Makefile
16 years ago
Dirk Engling
d29536e30a
MUST NOT enable features in CVSpico Makefile bad coder
16 years ago
Dirk Engling
c37d25fd75
The expensive DMEM stats is gone. No need for it, too much potential to DOS.
16 years ago
Dirk Engling
2e2c1762d3
Move stats out of opentracker.c, also have an own file handle udp requests.
16 years ago
Dirk Engling
6c2d01dba4
Thank you, GNU for fucking up pmake :)
16 years ago
Dirk Engling
bcf252f249
Makefile now builds each object on its own. Thus it can be build with -j2 and higher
16 years ago
Dirk Engling
fed78043a6
No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable.
16 years ago
Dirk Engling
aa25c390dd
Introducing first tools to make opentracker multithreaded.
16 years ago
Dirk Engling
df30bc8484
Number of buckets is 1024 now
...
Clean all torrents now only cleans one bucket at a time
All torrents that are being worked upon in an announce are being cleaned on demoand
torrent's peer lists now keep extra counts for seeds and peers to speed up scrape and announce
Sync has gone for now. I will think up a new way to implement. The old one was way to slow.
16 years ago
Dirk Engling
68d87742fa
Two more bugs in Makefile. Maybe I learn it one day
16 years ago
Dirk Engling
3e71f32d26
Revert debug option in Makefile
16 years ago
Dirk Engling
c6d90b150d
Makefile now runs under bsdmake and gnumake again
16 years ago
Dirk Engling
6bad28c924
Makefile defaults to an _open_ tracker again.
16 years ago
Dirk Engling
8ef59b0351
* fixed "nobody " -> "nobody" fuckup when getpwnam-ing
...
* implemented basic blacklisting:
** the file specified with -b <BLACKLIST> is read and added to a blacklist vector
** if an announce hits a torrent in that blacklist vector, add_peer_to_torrent fails
** sending a SIGHUP to the program forces it to reread the blacklists
** the server returns with a 500, which is not exactly nice but does the job for now
** an adaequat "failure reason:" should be delivered... TODO
16 years ago