Commit Graph

172 Commits

Author SHA1 Message Date
Arvid Norberg c1dc982f4f deprecate the ptime type and related time types. just use boost::chrono / std::chrono 2015-03-12 04:34:54 +00:00
Arvid Norberg 2943bd4d7d make test_privacy more reliable 2015-01-14 01:59:23 +00:00
Arvid Norberg 73a4755f13 fix asio-debugging bug in udp_socket 2015-01-05 12:22:31 +00:00
Arvid Norberg 3be0430036 merged changes from RC_1_0 2015-01-05 12:15:16 +00:00
Arvid Norberg ae04b80fe1 cancel non-critical DNS lookups when shutting down, to cut down on shutdown delay 2014-12-17 02:44:27 +00:00
Arvid Norberg a91848962a merge changes from RC_1_0 2014-10-12 04:18:34 +00:00
Arvid Norberg ceccc2a483 land branch to remove half-open connection limit / connection queue 2014-10-03 20:56:57 +00:00
Arvid Norberg 1c915f2e95 merge changes from RC_1_0 2014-09-28 20:02:43 +00:00
Arvid Norberg 3f88389f05 merged changes from RC_1_0 2014-08-16 07:46:06 +00:00
Arvid Norberg 7351389ce8 land libtorrent_aio branch in trunk 2014-07-06 19:18:00 +00:00
Arvid Norberg fa4c016d39 fix bug in udp_socket when changing socks5 proxy quickly 2014-06-30 08:41:33 +00:00
Arvid Norberg 9c63dd1341 fix unhandled exception 2014-06-19 03:26:29 +00:00
Arvid Norberg 22491740e5 fix the fix for large UDP packets on windows 2014-05-10 23:44:57 +00:00
Arvid Norberg 9cc7c3bbf9 if issue with large UDP packets on windows 2014-05-10 06:37:31 +00:00
Arvid Norberg a943fec777 update copyright 2014-02-23 19:12:25 +00:00
Arvid Norberg 8ab1d8b686 more build fixes and cleaning up 2014-01-19 20:19:15 +00:00
Arvid Norberg 702b68ecc4 clean up assert related defines and debuf-only fields less error-prone. fix missing initialization in file_pool caused by mistake in defines under which the debug field was initialized 2014-01-19 19:45:50 +00:00
Arvid Norberg b63cdcb991 fix build without asserts 2014-01-08 05:45:13 +00:00
Arvid Norberg 4e6b1cfbfb update copyright 2013-12-25 17:07:16 +00:00
Arvid Norberg d736b158a0 fix udp_socket proxy issue 2013-11-20 01:19:42 +00:00
Arvid Norberg 1be2b6dc1a some errors cause asio to throw exceptions instead of returning the error in the passed in error_code&. catch the one in udp_socket 2013-11-17 23:06:51 +00:00
Arvid Norberg 3aa2d46b4b if proxy name server lookup fails, and we're not in anonymous mode, disable the proxy and continue 2013-10-20 21:08:59 +00:00
Arvid Norberg 5eb5057a52 merged ipv6 fix from RC_0_16 2013-10-08 09:30:33 +00:00
Arvid Norberg c137e79e34 merge IPv6 fix from RC_0_16 2013-10-08 05:11:29 +00:00
Arvid Norberg 97c69cb041 merged IPv6 fix from RC_0_16 2013-09-25 06:50:08 +00:00
Arvid Norberg a780b8469d abstract generic_category() to build on boost-1.42 and older. fix some include issues in tests 2013-09-09 07:06:12 +00:00
Arvid Norberg 1afc0c6740 a bunch of fixes to make test_web_seeds a lot faster, and fail slightly fewer tests 2013-08-19 03:54:45 +00:00
Arvid Norberg 6bc908fd49 merged anonymous mode fix from RC_0_16 2013-06-12 07:57:13 +00:00
Arvid Norberg a75a0581e3 improve error message for listen_failed_alert 2013-06-04 00:35:42 +00:00
Arvid Norberg 9db408b416 merged UDP SOCKS5 fix from RC_0_16 2013-05-24 06:28:46 +00:00
Arvid Norberg 86a2569728 separate anonymous mode and force-proxy mode, and tighten it up a bit 2013-02-19 06:48:53 +00:00
Arvid Norberg 71522f7f08 merge asio-debugging fix from RC_0_16 2013-02-17 04:54:10 +00:00
Arvid Norberg 2f0800523c merged DHT optimization from RC_0_16 2013-01-12 06:15:45 +00:00
Arvid Norberg 6a3ee5a7cf whenever checking for EWOULDBLOCK, also check for EAGAIN 2012-11-20 02:08:12 +00:00
Arvid Norberg d2f72f50cc merged IPV6_V6ONLY fix from RC_0_16 2012-11-19 04:58:46 +00:00
Arvid Norberg 16630f94d1 merged fixes from RC_0_16 2012-10-21 20:24:14 +00:00
Arvid Norberg 281b7d4768 merged udp_socket fix from RC_0_16 2012-10-21 03:56:22 +00:00
Arvid Norberg 3a2da49516 udp_socket fix 2012-10-18 07:34:39 +00:00
Arvid Norberg bff648a89e update copyright dates and add tool to do so 2012-10-02 03:16:33 +00:00
Arvid Norberg 19e4cbec46 merged udp socket fix 2012-09-27 17:39:41 +00:00
Arvid Norberg 28e32b57b6 merged UDP socket fix from RC_0_16 2012-09-25 18:57:50 +00:00
Arvid Norberg fdc25967c2 merged string function cleanup from RC_0_16 2012-08-26 15:26:17 +00:00
Arvid Norberg ecfb59d1e1 fix udp_socket bug 2012-07-23 05:36:35 +00:00
Arvid Norberg 0657690b1c attempt at fixing shutdown hang caused by connection_queue 2012-07-15 23:22:23 +00:00
Arvid Norberg 9f4697a11b merged udp_socket fix from libtorrent_aio 2012-07-15 02:16:02 +00:00
Arvid Norberg bd4f173bc5 fix uTP edge case where udp socket buffer fills up 2012-07-01 18:44:46 +00:00
Arvid Norberg 96aa1f162b fix for udp_socket observers and some dht warning fixes 2012-06-30 15:30:38 +00:00
Arvid Norberg 4ddbe44a0d fix bug in the udp socket observer use for DHT and add debug facilily for the observers 2012-06-25 03:31:11 +00:00
Arvid Norberg d73bbf5053 clean up the udp socket and its consumers by adding an observer interface and have the udp tracker, utp socket manager and dht tracker subscribe to it instead of going through the session_impl. This probably improves performance a tiny bit but primarily improves modularization and testability 2012-06-22 04:21:20 +00:00
Arvid Norberg 2b9b2a188a remove uTP delayed ack and instead send acks when the udp socket has been drained. simplify the udp socket to use null_buffers and allocate less memory for buffers. this also eliminated the race condition when resizing the udp socket receive buffer which greatly simplified it 2012-06-21 15:05:57 +00:00
Arvid Norberg 75f110f48e fix potential overflow issue in rate_limited_udp_socket (only if the computer locks up for a long time or you're debugging) 2012-04-04 04:24:29 +00:00
Arvid Norberg 9cd5c6cc2f don't require BOOST_ASIO_ENABLE_CANCELIO on non-windows platforms 2012-03-01 08:27:22 +00:00
Arvid Norberg cde80acbde fixed UDP socket error handling on windows 2012-02-17 18:23:47 +00:00
Arvid Norberg d27430a8c3 clear the queued packets on socks5 error, as a precaution 2011-09-17 23:03:46 +00:00
Arvid Norberg 801d3637b9 attempt to fix crash in udp_socket when using a broken socks5 proxy 2011-05-14 22:25:49 +00:00
Arvid Norberg a73960aa5a support release asserts 2011-05-08 09:04:59 +00:00
Arvid Norberg bcd44536a8 stack SOCKS5 UDP header buffer needs to fit at least 22 bytes 2011-04-10 02:29:35 +00:00
Arvid Norberg e5720eafd8 fix crash in udp_socket when using SOCKS5 proxy 2011-04-09 17:59:00 +00:00
Arvid Norberg 56937edf56 cleaned up some exception handling and introduced macros like BOOST_TRY/BOOST_CATCH to make the optional exception handling nicer 2011-02-25 17:00:36 +00:00
Arvid Norberg 141ada013f fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way 2011-02-21 05:24:41 +00:00
Arvid Norberg 192a829222 fixed udp-socket race condition when using a proxy 2011-02-09 08:01:53 +00:00
Arvid Norberg 813d88a50e fix non-IPv6 build 2011-02-09 07:27:04 +00:00
Arvid Norberg cfd36ca53e another udp_socket buffer allocation fix 2011-02-08 17:17:07 +00:00
Arvid Norberg 231118fdd0 one more udp_socket fix 2011-02-07 01:41:54 +00:00
Arvid Norberg 127fc0bd93 merged udp socket fix to 0.15 branch and made some more fixes to it 2011-02-06 00:34:52 +00:00
Arvid Norberg 5690444178 fixed bug in udp_socket where there would be two outstanding async read operations on the socket 2011-02-05 21:19:33 +00:00
Arvid Norberg 4c0c322387 use free/malloc instead of realloc in udp_socket 2011-02-05 09:39:15 +00:00
Arvid Norberg 77a4ac782a udp socket cleanup and asserts 2011-01-31 06:31:22 +00:00
Arvid Norberg 9964b9cdb6 support a separate option to use proxies for peers or not 2011-01-24 03:24:28 +00:00
Arvid Norberg 35aaec3b38 fix read buffer bug in udp_socket 2011-01-19 07:16:45 +00:00
Arvid Norberg e5f980d80d merged uTP branch into trunk (yay) 2010-11-29 01:33:05 +00:00
Arvid Norberg 2e871382d7 add debug configuration to debug shutdown-stall bugs / outstanding async operations 2010-11-28 01:47:30 +00:00
Arvid Norberg d937716af0 use PtrToPtr64 for scatter/gather I/O operations 2010-11-22 00:54:39 +00:00
Arvid Norberg 554e329f57 remove udp_socket mutex 2010-09-25 21:39:27 +00:00
Arvid Norberg e6d400084e fix to start async operations inside the network thread to maintain thread safety within asio 2010-09-25 20:07:27 +00:00
Arvid Norberg afd5567969 session::set_tracker_proxy fix for udp trackers 2010-08-21 22:07:29 +00:00
Arvid Norberg d1d6814e2f drop proxied incoming packets if the source IP doesn't match the proxy 2010-08-20 07:13:05 +00:00
Arvid Norberg fd5f1bf80b improved SOCKS5 support 2010-08-03 09:08:37 +00:00
Arvid Norberg f27e24ba98 fixed rate limit bug for DHT 2010-07-28 18:43:56 +00:00
Arvid Norberg ef48c92a4e fixed SOCKS5 bug for routing UDP packets 2010-07-25 01:31:15 +00:00
Arvid Norberg eed5ec97a6 fix issue with UDP socket closing before UDP trackers having a chance of sending stopped event 2010-07-18 02:49:26 +00:00
Arvid Norberg 70ea511409 fixed rate limited udp socket timer issue 2010-07-03 02:57:21 +00:00
Arvid Norberg b96e0a448e udp socket debugging and asserts 2010-02-21 20:15:07 +00:00
Arvid Norberg 09a1023eb3 fixed issue with UDP over SOCKS5. Added a udp tracker to the unit test to make sure it works. Added tracker tests for all proxies 2010-02-18 04:37:02 +00:00
Arvid Norberg 8c02d04d2e UDP tracker optimization 2010-02-06 08:14:18 +00:00
Arvid Norberg deb363e53b removed floating point operation in rate limited udp socket 2009-11-01 03:18:00 +00:00
Arvid Norberg 8a5b7d5d36 got rid of the last recursive mutexes. abstracted the threading primitives (and switched over to use asio's internal ones). 2009-10-20 02:49:56 +00:00
Arvid Norberg 6c67da08d6 split socket.hpp up in multiple headers to lower build time somewhat 2009-09-16 03:46:36 +00:00
Arvid Norberg a061592619 udp_socket fix 2009-05-31 23:48:24 +00:00
Arvid Norberg 4724051841 fixed assert in udp_socket 2009-04-13 17:52:45 +00:00
Arvid Norberg b5bb51c6af cut out more IPv6 code if not supported 2009-04-04 16:59:53 +00:00
Arvid Norberg 8030454c96 fixes problem whith lexical_cast being locale dependent 2009-01-27 06:17:55 +00:00
Arvid Norberg 6c6af0c0a0 added missing license header 2009-01-26 18:15:20 +00:00
Arvid Norberg b0a72f6809 fixed dead-lock when setting DHT proxy 2009-01-06 17:45:32 +00:00
Arvid Norberg 469fe10107 udp_socket fix believed to fix #445 2008-12-28 01:50:55 +00:00
Arvid Norberg 4bd0d2d2e6 added resolver cancellation to http_connection and udp_socket. might prevent potential shutdown stalls 2008-12-20 18:27:09 +00:00
Arvid Norberg d850a9ea38 utp socket fix 2008-12-19 06:20:09 +00:00
Arvid Norberg 6d3d58020a udp_socket fixes and extra asserts 2008-12-12 09:20:27 +00:00
Arvid Norberg 3b7e484d6a various fixes for potential shutdown freezes 2008-12-07 20:25:04 +00:00
Arvid Norberg 09b3a865ef fixed compiler flags in pkg-config file and made header files not depend on the NDEBUG define 2008-11-29 21:33:21 +00:00