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
Jonathan Moore
8600a7e959
HTTPCLIENT-1108: reuse of persistent connections now uses a stack (LIFO)
...
instead of a queue (FIFO), so that unneeded connections will eventually
become idle and reclaimable by closeIdleConnections().
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147280 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 18:59:51 +00:00
Oleg Kalnichevski
d5b66aa9d8
Added #reset() and #releaseConnection() methods to HttpRequestBase
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1145177 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 13:58:24 +00:00
Oleg Kalnichevski
a03573ca24
HTTPCLIENT-1105: Built-in way to do auto-retry for certain status codes
...
Contributed by Dan Checkoway <dcheckoway at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1141078 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 12:56:38 +00:00
Oleg Kalnichevski
97557998d5
HTTPCLIENT-1072: inline nested jars in OSGi bundles
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1140281 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 19:18:54 +00:00
Oleg Kalnichevski
494ba13c3e
HTTPCLIENT-1094: digest auth scheme refactoring
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1138790 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 09:31:31 +00:00
Oleg Kalnichevski
21e31ba027
HTTPCLIENT-1086: additional constructors for UrlEncodedFormEntity that take iterable as input
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1136437 13f79535-47bb-0310-9956-ffa450edef68
2011-06-16 13:50:02 +00:00
Jonathan Moore
2d017dcc0e
HTTPCLIENT-1100: Missing Content-Length header makes cached entry invalid.
...
Applying patch provided by Bart Robeyns <bart dot robeyns at gmail dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1133907 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 15:01:42 +00:00
Jonathan Moore
8dbbed80cc
Reverting changeset r1133877 (duplicate addition of spymemcached repository).
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1133902 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 14:52:41 +00:00
Jonathan Moore
ae7c42fc95
+ Noticed that the memcached dependency needed for the caching module
...
is not provided by Maven Central, so we couldn't build the project
if the memcached jar wasn't already in the local repository. I added
a <repository> for the pom for httpclient-cache, since that's the
only module that needs it, but if we'd prefer to put that in the
parent pom I can certainly move it there too (not sure what the
prevailing opinion is on this).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1133877 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 14:01:41 +00:00
Oleg Kalnichevski
92d66f3355
HTTPCLIENT-1098: Avoid expensive reverse DNS lookup on connect timeout excpetion
...
Contributed by Thomas Boettcher <tboett at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1132902 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 08:25:24 +00:00
Sebastian Bazley
a41eccec14
HTTPCLIENT-1097 BrowserCompatHostnameVerifier and StrictHostnameVerifier should handle wildcards in SSL certificates better.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1130531 13f79535-47bb-0310-9956-ffa450edef68
2011-06-02 13:08:15 +00:00
Oleg Kalnichevski
4acba49325
Fixed the test breakage on Linux where the local host name is returned as 'localhost.localdomain'
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128917 13f79535-47bb-0310-9956-ffa450edef68
2011-05-29 17:58:42 +00:00
Sebastian Bazley
e30d68d9f0
Another test
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128649 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 14:01:42 +00:00
Sebastian Bazley
10ca47490e
HTTPCLIENT-1097 Add a test to check status quo for 2TLD matching
...
Also add disabled test for wildcard 2TKD matching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128647 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 13:49:38 +00:00
Sebastian Bazley
2a08b55242
HTTPCLIENT-1097 Add a test to check status quo
...
Also add disabled test for wildcard matching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128637 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 13:14:22 +00:00
Sebastian Bazley
cf5eb5dea5
Spelling
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128432 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 19:29:53 +00:00
Sebastian Bazley
180ec543f0
Add Cookie ordering test
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128428 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 19:16:55 +00:00
Sebastian Bazley
39ad9e032d
Tidy up ignore cookie references
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128346 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 15:05:16 +00:00
Sebastian Bazley
da05e5c6d4
Add reference to Ignore CookieSpec
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128338 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 14:54:28 +00:00
Sebastian Bazley
0e2b207489
HTTPCLIENT-1092 If ClientPNames.VIRTUAL_HOST does not provide the port, derive it from the current request.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1125566 13f79535-47bb-0310-9956-ffa450edef68
2011-05-20 20:51:24 +00:00
Oleg Kalnichevski
f3e7802196
Updated dependency declarations; upgraded HttpCore to 4.1.1; upgraded Memcached to version 2.6
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1124274 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 14:08:24 +00:00
Sebastian Bazley
52478759a5
Minor grammatical change
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1104397 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 16:48:09 +00:00
Oleg Kalnichevski
e2fa3ae38f
HTTPCLIENT-1087: NTLM proxy authentication fails on retry if the underlying connection is closed as a result of a target authentication failure
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1104207 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 12:54:14 +00:00
Oleg Kalnichevski
195026ce43
Lax implementation of RedirectStrategy contributed by Bartosz Firyn <songo.bercik at interia.pl>
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1104115 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 10:32:08 +00:00