Commit Graph

1526 Commits

Author SHA1 Message Date
Sebastian Bazley f5cb5f9e19 Update to HC parent 5
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1172154 13f79535-47bb-0310-9956-ffa450edef68
2011-09-17 23:51:34 +00:00
Sebastian Bazley 5e1f6e6eb6 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1170168 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 13:14:57 +00:00
Sebastian Bazley 6fa7185b74 Update to JUnit 4.9
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1170156 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 12:49:12 +00:00
Sebastian Bazley 2ecea22e6d Annotations are now in httpcore
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1170154 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 12:45:53 +00:00
Sebastian Bazley 486680b5a0 HttpMime does not currently use logging directly
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1170142 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 12:33:25 +00:00
Sebastian Bazley 74f79c259a fluent-hc has a direct dependency on logging.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1170138 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 12:29:41 +00:00
Sebastian Bazley 1f91369c58 <reports> section is obsolete
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1169590 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 01:36:44 +00:00
Sebastian Bazley 01b39c4883 Add version variables for report plugins
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1167667 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 03:28:11 +00:00
Sebastian Bazley 3fb00002d7 Remove mailing-list from child projects; re-instate in parent only
[Note, this won't affect child projects until they switch to parent 5; existing parent does not disinherit them]

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1167518 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 14:06:53 +00:00
Oleg Kalnichevski fb4bbe08d1 Updated javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1166554 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 07:56:00 +00:00
Oleg Kalnichevski 7009ad7d0f Simplified InMemoryDnsResolver#add method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1166362 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 20:04:38 +00:00
Oleg Kalnichevski 57ea057594 HTTPCLIENT-1123: Support for pluggable DNS resolvers (default resolver).
Contributed by Alin Vasile <alinachegalati at yahoo dot com>



git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1165863 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 21:27:48 +00:00
Oleg Kalnichevski d65b529e08 Fixed broken test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1165646 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:49:00 +00:00
Oleg Kalnichevski ce13e3606f HTTPCLIENT-1123: Support for pluggable DNS resolvers.
Contributed by Alin Vasile <alinachegalati at yahoo dot com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1165635 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:20:26 +00:00
Sebastian Bazley 5d554ccf26 HTTPCLIENT-1120 - DefaultHttpRequestRetryHandler#retryRequest should not retry aborted requests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1164052 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 12:45:02 +00:00
Sebastian Bazley df91357884 Javadoc syntax
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1163467 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 01:26:50 +00:00
Oleg Kalnichevski daea5648dd Updated OSGi metadata
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1161025 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 09:09:13 +00:00
Oleg Kalnichevski 102ed1e844 Redesigned connection management code based on HttpCore 4.2 API (merged from conn-mgmt-redesign branch)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1160635 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 11:32:53 +00:00
Oleg Kalnichevski 257ea4c9ad HTTPCLIENT-1076: fluent facade API for HttpClient developed by Xu Lilu for the Google summer of code 2011: exception handling improvements; some test coverage
Contributed by Xu Lilu <cookieme at gmail.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1160386 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 19:29:33 +00:00
Oleg Kalnichevski 1b08395e72 Support for auth-int qop (quality of protection) option in Digest auth scheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1158320 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:13:36 +00:00
Oleg Kalnichevski be07d74d16 Simplified ServiceUnavailableRetryStrategy interface; made DefaultServiceUnavailableRetryStrategy immutable; updated javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1158314 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:09:34 +00:00
Oleg Kalnichevski 4bb50b352c Tweaked HttpInetSocketAddress class; updated javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1158312 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:00:08 +00:00
Oleg Kalnichevski 5227866cd9 Minor tweaks to UriBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1157360 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 09:32:41 +00:00
Oleg Kalnichevski da5aebe735 HTTPCLIENT-1076: initial check-in of the fluent facade API for HttpClient developed by Xu Lilu for the Google summer of code 2011
Contributed by Xu Lilu <cookieme at gmail.com>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1157347 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 08:31:50 +00:00
Oleg Kalnichevski 4a25576f5d Reverted changes committed by mistake
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156538 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 08:36:36 +00:00
Oleg Kalnichevski 46f309f7c9 Improved #detach method implementation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156522 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 07:46:35 +00:00
Oleg Kalnichevski bf13db8115 Eliminated synchronization overhead introduced by the connection backoff code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1156175 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:34:06 +00:00
Oleg Kalnichevski 444c6bf0e8 TABS -> SPACES
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1156167 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:15:20 +00:00
Oleg Kalnichevski 0e3d0d9e1e Fixed bug in benchmark's warm up code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1156164 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:10:52 +00:00
Oleg Kalnichevski ec85b40b80 Added a micro benchmark comparing performance of old and new blocking connection pools
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156162 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:03:33 +00:00
Oleg Kalnichevski 0195cb4007 Simplified synchronization code in ManagedClientConnectionImpl
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156161 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:00:41 +00:00
Oleg Kalnichevski e461c10cec HttpCore benchmark sampler to make use of a connection pool; upgraded Ning Http Client to version 1.6.4
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1155309 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 11:11:21 +00:00
Oleg Kalnichevski 6be907264f Moved pool entry ID generation logic from abstract pool classes to specific implementations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1155307 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 11:08:59 +00:00
Oleg Kalnichevski eb920ec3cc Redesign of connection management classes based on new pooling components from HttpCore
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1154916 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 10:59:55 +00:00
Oleg Kalnichevski 9b97410b84 Redesign of connection management classes based on new pooling components from HttpCore
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1154914 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 10:51:10 +00:00
Oleg Kalnichevski c8e15484d3 Connection management redesign branch
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1154912 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 10:44:11 +00:00
Oleg Kalnichevski 030b8d3773 Increased sleep time in some test cases currently failing when executed on Windows
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1153911 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 15:39:23 +00:00
Oleg Kalnichevski f944e26075 Removed trailing whitespaces
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1153910 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 15:30:29 +00:00
Oleg Kalnichevski a220960fee HTTPCLIENT-1051: paranoia is fun
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1152363 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 20:12:30 +00:00
Oleg Kalnichevski f7b59d7f6c HTTPCLIENT-1111: Added #prepareSocket method to SSLSocketFactory
Contributed by Pasi Eronen <pe at iki.fi>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151869 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 14:27:45 +00:00
Jonathan Moore 3d933f9582 HTTPCLIENT-1108: increase timing intervals on thread-related tests to reduce
chances of race conditions.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151554 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 17:42:54 +00:00
Jonathan Moore 8e3a323a32 HTTPCLIENT-1108: much better unit test coverage of ConnPoolByRoute
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151465 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 13:54:49 +00:00
Oleg Kalnichevski 9747a7dd1a HttpClient web site updates
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1150079 13f79535-47bb-0310-9956-ffa450edef68
2011-07-23 09:47:00 +00:00
Jonathan Moore 6d517fc723 HTTPCLIENT-1108: connection should get closed if checked back in as non-reusable.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1148901 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 19:03:27 +00:00
Jonathan Moore 39a4f616aa HTTPCLIENT-1108: backing out my earlier commit of the FIFO structure, to restore
prior functionality. I realized I didn't do this at the right level; we want to
do FIFO at the per-route connection pool level but do LIFO at the "all connections"
level. Will keep working forward on this.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1148769 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 13:45:18 +00:00
Jonathan Moore dd90fe4685 HTTPCLIENT-1108: Adding Mockito unit tests for ConnPoolByRoute. The unit test
down at the bottom is currently @Ignored but is the question I had on the dev
list just now--is this test correct in its assertions?


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1148420 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 16:02:45 +00:00
Jonathan Moore cbfca24df8 HTTPCLIENT-1101: added ASF header to recently-added files.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147962 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:36:25 +00:00
Jonathan Moore ff78877ef6 Disable logging output by default during unit tests.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147959 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:33:10 +00:00
Jonathan Moore 3cfa76291c HTTPCLIENT-1101: make Clock and SystemClock package-private, since they
are only used to expose hooks for unit testing time-related behaviors,
and we don't want them as part of the public API. Also expanded the
Javadoc for the AIMDBackoffManager.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147958 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:31:28 +00:00
Jonathan Moore dfea0c207f HTTPCLIENT-1101: adaptive connection pool sizing. This implements an
additive increase / multiplicative decrease (AIMD) strategy for
on-the-fly connection pool sizing. No default behavior is changed
at the moment (you have to opt into this algorithm). Still needs
documentation.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147947 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:13:44 +00:00