Commit Graph

200 Commits

Author SHA1 Message Date
Arvid Norberg 6519660372 add port number of host field in http requests 2008-11-29 23:00:57 +00:00
Arvid Norberg 8c0165b5c4 removed incorrect assert 2008-10-31 23:14:36 +00:00
Arvid Norberg dc6564fa11 applies ip filter to trackers as well 2008-10-22 19:40:32 +00:00
Arvid Norberg 41d5abf0d8 exception related fixes. Avoiding functions that may throw in places where exceptions shouldn't be thrown 2008-10-21 08:45:42 +00:00
Arvid Norberg 3d75732145 changed variant_stream to return a pointer instead of a reference when querying for underlying type (avoids exceptions) 2008-10-18 07:12:04 +00:00
Arvid Norberg e109b64b27 fixed bug when contacting an HTTP/1.0 web server that used gzip compression 2008-10-10 04:19:56 +00:00
Arvid Norberg d2b37572fa disable endpoint sorting in http_connection for msvc, since it ICEs the compiler. Fixes #361 2008-07-03 10:05:19 +00:00
Arvid Norberg 0afe661d5a fixed http_connection assert 2008-06-07 17:47:05 +00:00
Arvid Norberg c5d61667b3 http_connection now supports connecting to all IPs a hostname resolves to, as fallbacks 2008-05-18 22:14:55 +00:00
Arvid Norberg b952d85734 fixed error handling and added support for relative http redirects (which aren't allowed by the standard) 2008-05-18 04:48:06 +00:00
Arvid Norberg 7f639e57de improved error handling with regards to parse_url_components. For trunk, moved that function to its own file 2008-05-17 14:19:34 +00:00
Arvid Norberg 5ec7da07e6 fixes #332 2008-05-17 00:27:26 +00:00
Arvid Norberg c7e6c04705 switched over to asio from boost-1.35 2008-05-03 16:05:42 +00:00
Arvid Norberg 2cfbfd203f made tests build and pass in trunk. fixed issues in trunk revealed by the tests. fixed failing torrent invariant check in trunk and rc0.13 2008-03-14 10:17:27 +00:00
Arvid Norberg 0e4d62497b fixed typo in previous check-in 2008-03-12 07:56:45 +00:00
Arvid Norberg cd65fb8b0c added priority to connection queue. trackers and upnp connections have higher priority than peers 2008-03-12 07:44:27 +00:00
Arvid Norberg 0c51e822f5 fixes #270 2008-02-17 23:49:03 +00:00
Arvid Norberg 3562c3e646 add bind address support to http_connection and replace http_tracker_connection's code with http_connection 2008-01-31 08:24:01 +00:00
Arvid Norberg 6caca17883 refactored gzip code and added gzip support to http_connection 2008-01-30 18:32:13 +00:00
Arvid Norberg 61bbc6e58f initial https support for trackers and http_connection. Added support for proxies to http_connection 2008-01-27 22:39:50 +00:00
Arvid Norberg 81302c8fed fixed http_connection redirection support and added test (still requires lighttp) 2008-01-12 01:41:56 +00:00
Arvid Norberg ed4b39a2cc made http_connection build without exception support 2007-12-29 23:37:50 +00:00
Arvid Norberg 6c42830f97 made http_parser not use exceptions 2007-12-29 18:24:50 +00:00
Arvid Norberg 7cae5f897b fixed http_connection error handling and improved http parser 2007-12-12 19:29:19 +00:00
Arvid Norberg 9727634f09 added base32encode and moved it into escape_string.hpp 2007-12-02 18:34:37 +00:00
Arvid Norberg a1a841a04d http_connection fixes and unit test (not self contained yet, just like test_web_seed) 2007-11-18 04:12:35 +00:00
Arvid Norberg b832fdb48a http_connection shutdown fixes 2007-11-15 23:55:30 +00:00
Arvid Norberg 966800cd5b replaced the assert macro to TORRENT_ASSERT instead of hi-jacking assert. 2007-10-05 00:30:00 +00:00
Arvid Norberg ab70e4e9c1 fix to http_connection 2007-10-03 22:23:18 +00:00
Arvid Norberg d48236a738 changed http_parser slightly. uses http_parser in lsd.cpp. added more tests to the http_parser 2007-09-25 03:14:05 +00:00
Arvid Norberg 94f5b93d21 made it possible to pass in custom buffers to piece_manager::async_read, increased the maximum buffer size on bottled http_requests 2007-09-11 17:45:20 +00:00
Arvid Norberg 0d02fe0539 upnp and lsd update. added a broadcast_socket and made the upnp connection use the locally bound ip to specify its address in the soap requests 2007-09-09 23:52:34 +00:00
Arvid Norberg 22cd8ded91 fixed semantics in http_connection 2007-06-05 01:25:46 +00:00
Arvid Norberg cbd67ed729 added support for authentication in the url_parser and added a test for it 2007-05-22 20:44:18 +00:00
Arvid Norberg 49bd69cad4 introduced a proper half open TCP connection limit. Also exposed the connection queue to let clients use the same connection limiter as libtorrent. UPnP connections and tracker connection are now also limited as well as peer connections and web seeds 2007-05-05 00:29:33 +00:00
Arvid Norberg b98162621e fixes for the GET request and passes that data through the data pointer in bottled mode too 2007-05-01 22:44:54 +00:00
Arvid Norberg e5a20b8de6 fix to previous check-in 2007-04-19 21:02:33 +00:00
Arvid Norberg 8ef7819a95 added redirection support to http_connection 2007-04-19 20:52:29 +00:00
Arvid Norberg 009b10e9bf completed previous fix 2007-04-10 19:22:08 +00:00
Arvid Norberg e65206309c fixed issue when aborting an http connection 2007-04-10 18:53:12 +00:00
Arvid Norberg 0863bc1aa6 removed the dependency on the compiled boost.date_time library 2007-04-10 09:11:32 +00:00
Arvid Norberg 5f3797cf80 fix in http_connection where the handler was sometimes not called when rate limited and aborted 2007-04-06 23:01:27 +00:00
Arvid Norberg b1501d0dac fix for rate limited http_connection 2007-04-05 20:53:11 +00:00
Arvid Norberg 27da18bd0a windows fixes 2007-04-05 01:08:21 +00:00
Arvid Norberg 306d015924 added a timer abstraction and replaced the use of boost.date_time. the timers used now are QueryPerformanceCounter on windows, mach_absolute_time on darwin and currently falls back on boost.date_time on other platforms. This has the advantage of being a monotonic clock, and also slightly more efficient 2007-04-04 22:27:36 +00:00
Arvid Norberg ed9e80a3d4 added support for rate limiting on http_connection 2007-04-03 20:00:47 +00:00
Arvid Norberg 10b5f538b1 fixed timeout issues on non-bottled long running http connections 2007-04-02 18:51:35 +00:00
Arvid Norberg 2f9611a1a9 UPnP seems to work 2007-04-01 15:39:08 +00:00
Arvid Norberg 6c8ef08e56 fix to have http_connection support keep-alive connections 2007-03-29 16:23:11 +00:00
Arvid Norberg 29e43d7f62 added http_connection and a simple xml parser, used by a upnp implementation that still isn't finished 2007-03-27 07:04:31 +00:00