Commit Graph

34 Commits (6eeb16123c4fa147b464aca99fc910b5aa02d36f)

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. 16 years ago
erdgeist b019607ba5 Limit comparison of strings to the length of the shorter string 16 years ago
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. 16 years ago
erdgeist d1a452e98a fix parser 16 years ago
erdgeist 131211b4da V6 16 years ago
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
16 years ago
erdgeist 5fb58458f6 Tidy up unnecessary includes 16 years ago
erdgeist daaee855b2 Whitespace fixes 16 years ago
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,
16 years ago
erdgeist c28cf398fd Introduce some kind of versioning 17 years ago
erdgeist 0cfd1e575d Add documentation to our uri scanner 17 years ago
erdgeist 72c72bb3a1 I accidently put space on the list of non-terminating characters... 17 years ago
erdgeist ab9246618b some clients chose to accidently send negative numwants 17 years ago
erdgeist 3b042b838a Be really relaxed now about what to accept in values... 17 years ago
erdgeist 286c17e7a9 Allow @ in values. This seems to fix some clients 17 years ago
erdgeist 23e484e13a Allow = in values. This seems to fix some clients 17 years ago
erdgeist b86e6382a1 Save a lot of work when skipping through uninteresting http request parameters 17 years ago
erdgeist dba3bb3ae7 Make fromhex() even faster 17 years ago
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
17 years ago
erdgeist 5c18293c9c New Makefile, incorporated some patches sent to me by Robin H. Johnson 18 years ago
erdgeist f1359eb652 Some clients even send plain : in their requests 18 years ago
erdgeist 6e1ee92de6 Use signed size_t wherever appropriate 18 years ago
erdgeist c094695add account downloaded before early returns 18 years ago
erdgeist bcef9d56a4 Allowing more relaxed parsing of queries 18 years ago
erdgeist d7c00a909b Do not write, if no string is passed 18 years ago
denis 99c1ba1896 support for questionmark in URL behind the initial one 18 years ago
erdgeist bee4ad4ba0 Now allow * in torrents 18 years ago
erdgeist 805e46450c Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed 18 years ago
erdgeist cdf2fbabed README\! 18 years ago
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. 18 years ago
erdgeist 688a4edd9e Now actually seems to work for the most parts
Added scraping
Added graceful disconnect
18 years ago
erdgeist 0de82a8925 Fixed parser 18 years ago
erdgeist 898206ac7a Some syntax errors removed 18 years ago
erdgeist 2adf4fb28a Our scanner routine for the URI query string 18 years ago