Commit Graph

34 Commits (b252679b2525640c095a36bd0b946044b69cee0e)

Author SHA1 Message Date
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. 2009-01-26 10:33:46 +00:00
Dirk Engling 679016139d Limit comparison of strings to the length of the shorter string 2009-01-19 18:22:25 +00:00
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. 2009-01-16 04:17:22 +00:00
Dirk Engling c6dd258244 fix parser 2009-01-14 00:05:06 +00:00
Dirk Engling 6337649b08 V6 2009-01-13 22:41:16 +00:00
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
2009-01-05 18:05:38 +00:00
Dirk Engling 545dab2c18 Tidy up unnecessary includes 2008-12-05 21:28:40 +00:00
Dirk Engling 7dcd727ce6 Whitespace fixes 2008-10-28 01:27:21 +00:00
Dirk Engling e076dab883 added live sync code
added a config file parser
added tracker id
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:48 +00:00
Dirk Engling e767fae72a Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
Dirk Engling 5be5e46f2a Add documentation to our uri scanner 2007-12-17 13:23:26 +00:00
Dirk Engling 62c528e88c I accidently put space on the list of non-terminating characters... 2007-10-23 00:44:22 +00:00
Dirk Engling 7075730766 some clients chose to accidently send negative numwants 2007-10-23 00:39:15 +00:00
Dirk Engling d751f98e29 Be really relaxed now about what to accept in values... 2007-10-23 00:27:00 +00:00
Dirk Engling 0f6628b7f8 Allow @ in values. This seems to fix some clients 2007-10-23 00:22:50 +00:00
Dirk Engling 20373192a4 Allow = in values. This seems to fix some clients 2007-10-23 00:20:05 +00:00
Dirk Engling 2c3b4e3de7 Save a lot of work when skipping through uninteresting http request parameters 2007-10-18 23:33:07 +00:00
Dirk Engling 91d3e4b6ef Make fromhex() even faster 2007-10-18 11:50:54 +00:00
Dirk Engling cc78f4d304 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
Dirk Engling 20635e3544 New Makefile, incorporated some patches sent to me by Robin H. Johnson 2007-04-03 11:08:17 +00:00
Dirk Engling 0c15779d39 Some clients even send plain : in their requests 2007-03-03 02:10:52 +00:00
Dirk Engling 158ce4d616 Use signed size_t wherever appropriate 2007-01-31 09:50:46 +00:00
Dirk Engling 342e3a25c0 account downloaded before early returns 2007-01-27 16:06:13 +00:00
Dirk Engling f06e1f0acb Allowing more relaxed parsing of queries 2007-01-24 21:49:41 +00:00
Dirk Engling a24a9eb3ca Do not write, if no string is passed 2007-01-24 21:18:42 +00:00
Denis Ahrens ae6ef2bf12 support for questionmark in URL behind the initial one 2007-01-24 21:12:05 +00:00
Dirk Engling 34977efa22 Now allow * in torrents 2007-01-22 02:41:09 +00:00
Dirk Engling afa05fad96 Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed 2007-01-11 01:06:10 +00:00
Dirk Engling a3ac795bec README\! 2007-01-05 00:00:41 +00:00
Dirk Engling aa444b6e18 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
Dirk Engling 7d1d51cc05 Now actually seems to work for the most parts
Added scraping
Added graceful disconnect
2006-12-14 02:44:50 +00:00
Dirk Engling 39c23f5f71 Fixed parser 2006-12-09 12:50:42 +00:00
Dirk Engling cc8c0a1df8 Some syntax errors removed 2006-12-08 20:28:17 +00:00
Dirk Engling d6b963d80a Our scanner routine for the URI query string 2006-12-08 19:20:51 +00:00