1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-15 01:12:07 +00:00

34 Commits

Author SHA1 Message Date
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
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
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
5fb58458f6 Tidy up unnecessary includes 2008-12-05 21:28:40 +00:00
erdgeist
daaee855b2 Whitespace fixes 2008-10-28 01:27:22 +00:00
erdgeist
e534db03c6 added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:51 +00:00
erdgeist
c28cf398fd Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
erdgeist
0cfd1e575d Add documentation to our uri scanner 2007-12-17 13:23:27 +00:00
erdgeist
72c72bb3a1 I accidently put space on the list of non-terminating characters... 2007-10-23 00:44:22 +00:00
erdgeist
ab9246618b some clients chose to accidently send negative numwants 2007-10-23 00:39:21 +00:00
erdgeist
3b042b838a Be really relaxed now about what to accept in values... 2007-10-23 00:27:00 +00:00
erdgeist
286c17e7a9 Allow @ in values. This seems to fix some clients 2007-10-23 00:22:50 +00:00
erdgeist
23e484e13a Allow = in values. This seems to fix some clients 2007-10-23 00:20:05 +00:00
erdgeist
b86e6382a1 Save a lot of work when skipping through uninteresting http request parameters 2007-10-18 23:33:07 +00:00
erdgeist
dba3bb3ae7 Make fromhex() even faster 2007-10-18 11:50:54 +00:00
erdgeist
243d5961d0 fixed one performance bug, where "skipping values from a &param=values pair" was requested, the requestor ended up with "values" to be parsed again.
improved performance of fromhex
improved performance of is_unreserved() by moving it all into a simple byte array
improved performance of %41 => 'A' conversion by reordering variables
2007-10-18 00:21:22 +00:00
erdgeist
5c18293c9c New Makefile, incorporated some patches sent to me by Robin H. Johnson 2007-04-03 11:08:17 +00:00
erdgeist
f1359eb652 Some clients even send plain : in their requests 2007-03-03 02:10:52 +00:00
erdgeist
6e1ee92de6 Use signed size_t wherever appropriate 2007-01-31 09:50:46 +00:00
erdgeist
c094695add account downloaded before early returns 2007-01-27 16:06:13 +00:00
erdgeist
bcef9d56a4 Allowing more relaxed parsing of queries 2007-01-24 21:49:41 +00:00
erdgeist
d7c00a909b Do not write, if no string is passed 2007-01-24 21:18:42 +00:00
denis
99c1ba1896 support for questionmark in URL behind the initial one 2007-01-24 21:12:05 +00:00
erdgeist
bee4ad4ba0 Now allow * in torrents 2007-01-22 02:41:09 +00:00
erdgeist
805e46450c Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed 2007-01-11 01:06:10 +00:00
erdgeist
cdf2fbabed README\! 2007-01-05 00:00:42 +00:00
erdgeist
e0a9c2a4aa Added option to get ip from query string + parser, fixed two bugs concerning grow/shrink of vectors. Now cleans up a torrent BEFORE trying to remove a peer -> this may remove peer already and must be done anyway. 2007-01-03 05:11:48 +00:00
erdgeist
688a4edd9e Now actually seems to work for the most parts
Added scraping
Added graceful disconnect
2006-12-14 02:44:50 +00:00
erdgeist
0de82a8925 Fixed parser 2006-12-09 12:50:42 +00:00
erdgeist
898206ac7a Some syntax errors removed 2006-12-08 20:28:17 +00:00
erdgeist
2adf4fb28a Our scanner routine for the URI query string 2006-12-08 19:20:51 +00:00