Oleg Kalnichevski
287d839410
HTTPCLIENT-1128: SystemDefaultHttpClient to take http.keepAlive and http.maxConnections system properties into account
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181130 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 18:46:08 +00:00
Oleg Kalnichevski
e41274c27d
Fixed broken test case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181127 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 18:41:37 +00:00
Oleg Kalnichevski
da570f7079
HTTPCLIENT-1129: Better handling of unexpected authentication failures in the SUCCESS auth state
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181082 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 17:22:32 +00:00
Oleg Kalnichevski
8f46fbacd8
Better state handling in NegotiateScheme#authenticate
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181015 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 15:17:26 +00:00
Oleg Kalnichevski
90b6853111
HTTPCLIENT-1128: SystemDefaultHttpClient to use ProxySelectorRoutePlanner
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181014 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 15:17:08 +00:00
Oleg Kalnichevski
7f04b88f12
HTTPCLIENT-1128: added SystemDefaultHttpClient, an extension of DefaultHttpClient pre-configured using system properties
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180994 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 14:28:07 +00:00
Oleg Kalnichevski
420fc2604f
HTTPCLIENT-1128: added factory method to create SSLSocketFactory instances initialized using system properties
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180993 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 14:27:45 +00:00
Oleg Kalnichevski
f2aa481280
Removed unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180376 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 13:44:07 +00:00
Oleg Kalnichevski
28de736437
HTTPCLIENT-1127: a better fix for the deal-lock between SingleClientConnManager.releaseConnection() and SingleClientConnManager.shutdown(); previous fix may have broken ThreadSafeClientConnManager
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180361 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 11:50:48 +00:00
Oleg Kalnichevski
6bd3da869d
Added method to SchemeRegistryFactory to initialize default scheme registry using system properties
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180360 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 11:50:01 +00:00
Oleg Kalnichevski
162f3d6d99
HTTPCLIENT-1131: HttpClient to authenticate preemptively using BASIC scheme if a userinfo attribute is specified in the request URI
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180120 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 17:49:42 +00:00
Oleg Kalnichevski
430c3d530e
Improved auth state tracking in HttpHttpAuthenticator
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180056 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 14:35:40 +00:00
Oleg Kalnichevski
427d2c24e0
HTTPCLIENT-1134: make BasicResponseHandler consume response content in case of an unsuccessful result (status code >= 300)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180014 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 12:14:49 +00:00
Oleg Kalnichevski
4f83ddb3e5
HTTPCLIENT-1132: ProxyClient implementation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179817 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 20:16:59 +00:00
Oleg Kalnichevski
6a6ee3737c
Removed misleading comment
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179744 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 18:21:33 +00:00
Oleg Kalnichevski
0c00bef71e
HTTPCLIENT-1127: fixed dead-lock between SingleClientConnManager and AbstractPooledConnAdapter
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179609 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 13:07:33 +00:00
Oleg Kalnichevski
62c57991f5
HTTPCLIENT-1120: AbstractPoolEntry to throw InterruptedIOException instead of plain IOException; HttpRequest to be added to the execution context prior to attempting to open connection (in case of a connect failure the retry handler can make use of the HttpRequest object bound to the context)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179594 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 12:34:21 +00:00
Oleg Kalnichevski
b1b85307a8
HTTPCLIENT-1120: moved test cases for abort handling to TestAbortHandling
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179593 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 12:33:11 +00:00
Oleg Kalnichevski
a38281b7f2
Fixed broken test case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178648 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 00:39:13 +00:00
Oleg Kalnichevski
76f66f4caa
HTTPCLIENT-1107: test case for auth scheme fallback mechanism in case of multiple auth options
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178640 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:51:45 +00:00
Oleg Kalnichevski
53883ec597
Unit tests for AuthenticationStrategyImpl
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178616 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 22:17:01 +00:00
Sebastian Bazley
bcc97c838f
Replace greedy imports with specific ones
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178262 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 22:16:47 +00:00
Oleg Kalnichevski
6b1ef7da2b
HTTPCLIENT-1130: LaxRedirectStrategy improvements
...
Contributed by Alin Vasile <alinachegalati at yahoo.com> and Ryan Smith <rsmith at opensourcemasters.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1177980 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 13:59:33 +00:00
Oleg Kalnichevski
6ae3bb8bc8
Unit tests for HttpAuthenticator
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1177977 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 13:41:37 +00:00
Oleg Kalnichevski
0cad2defa7
HTTPCLIENT-1107: support for multiple auth options (first cut)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1177782 13f79535-47bb-0310-9956-ffa450edef68
2011-09-30 19:16:15 +00:00
Oleg Kalnichevski
c514ac2a4c
Renamed AuthChallengeState to AuthProtocolState
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1176369 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 13:05:46 +00:00
Sebastian Bazley
e4ea515f20
HTTPCLIENT-1120 - DefaultHttpRequestRetryHandler#retryRequest should not retry aborted requests
...
Part two - still need to test connection abort (and fix if necessary)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1176137 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 00:06:07 +00:00
Sebastian Bazley
9a701bfbe4
Suppress boxing warning for test case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175961 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 17:28:53 +00:00
Oleg Kalnichevski
145d0c1f3c
HTTPCLIENT-1107: deprecated AuthenticationHandler in favor of new AuthenticationStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175433 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 17:27:22 +00:00
Oleg Kalnichevski
70a34914ba
HTTPCLIENT-1107: better tracking of auth challenge state transitions
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175415 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 15:49:27 +00:00
Oleg Kalnichevski
3853906d7d
HTTPCLIENT-1107: support auth scheme switching
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175378 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 12:38:43 +00:00
Oleg Kalnichevski
c4d1599bd0
HTTPCLIENT-1107: auth framework redesign
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175377 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 12:25:07 +00:00
Oleg Kalnichevski
e5d83200fd
HTTPCLIENT-1107: auth framework redesign
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175375 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 11:56:14 +00:00
Sebastian Bazley
47c6fa809f
isDebugEnabled can only be true if isInfoEnabled is true, so don't perform a useless check
...
Also might as well merge the other log.info into the block
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174784 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 14:07:26 +00:00
Oleg Kalnichevski
04626cb5ed
Always shut down HttpClient used in local server based tests
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174702 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 12:31:31 +00:00
Oleg Kalnichevski
28fbd4df7c
Use new pooling connection manager per default
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174683 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 12:06:12 +00:00
Oleg Kalnichevski
9ee4a41aa3
Upgraded HttpCore to version 4.2-alpha2
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174627 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 09:53:42 +00:00
Oleg Kalnichevski
eab98043c4
Renamed UriBuilder to URIBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1172642 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 14:34:47 +00:00
Oleg Kalnichevski
40a0ed44d2
Rewrite of UriBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1172634 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 13:55:58 +00:00
Oleg Kalnichevski
e5ea32b76d
TABS -> SPACES
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1172301 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 16:20:20 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oleg Kalnichevski
0999878b31
Bogus redirects should result in an HttpException instead of IllegalStateException
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1100531 13f79535-47bb-0310-9956-ffa450edef68
2011-05-07 13:42:15 +00:00
Sebastian Bazley
0bae59de4f
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099906 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 18:25:31 +00:00
Sebastian Bazley
70d37431ec
Suppress NPE warning
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099905 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 18:19:45 +00:00
Oleg Kalnichevski
471c2b3ae9
Deprecated ConnConnectionPNames.MAX_STATUS_LINE_GARBAGE
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1098106 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 12:42:44 +00:00
Oleg Kalnichevski
4998e3562d
Re-introduced timeout parameter for connection manager operations
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1098098 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 11:11:51 +00:00