Commit Graph

1603 Commits

Author SHA1 Message Date
Sebastian Bazley 12a3dbebeb Restore original logic - contentLen = 0 was outside null check
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206736 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:29:32 +00:00
Sebastian Bazley 8f91869343 Not sure that instream can be null, but assuming it can, there's no point entering the try block if it's null. This avoids NPE warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206734 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:28:28 +00:00
Sebastian Bazley 6921a32fa6 Not sure that instream can be null, but assuming it can, there's no point entering the try block if it's null. This avoids NPE warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206731 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:25:53 +00:00
Sebastian Bazley d7ce4582e2 Unnecessary ;
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206729 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 15:11:32 +00:00
Sebastian Bazley 5470d0746b setFailureCount is not thread-safe, but is not used AFAICT so remove it
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1206727 13f79535-47bb-0310-9956-ffa450edef68
2011-11-27 14:56:02 +00:00
Jonathan Moore fceb87e3bc HTTPCLIENT-1143: Added ASL header to ConsumableInputStream test class.
Credited James Miller in Release Notes.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1198941 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 21:13:45 +00:00
Jonathan Moore c8aafc5c1a HTTPCLIENT-1143: CachingHttpClient leaks connections with stale-if-error.
Bugfix from James Miller <jamesmiller01 at gmail dot com>.



git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1198939 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 21:09:41 +00:00
Jonathan Moore c13bbbdd17 HTTPCLIENT-1137: Added credit for Alin Vasile for his patch to the RELEASE_NOTES.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197718 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 19:11:31 +00:00
Jonathan Moore d19daa3dcd HTTPCLIENT-1137: The values for the Via header are created by httpclient-cache
for each cached and backend request. Committing patch by alinachegalati at yahoo dot com.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197713 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 19:07:52 +00:00
Oleg Kalnichevski 5dffa49321 Corrected debug log message
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197196 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 16:03:58 +00:00
Oleg Kalnichevski ae8e671030 HTTPCLIENT-1142: Infinite loop on NTLM authentication failure
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197194 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 15:58:05 +00:00
Oleg Kalnichevski 7541429cf2 Upgraded project version to 4.2-alpha2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1196788 13f79535-47bb-0310-9956-ffa450edef68
2011-11-02 20:19:52 +00:00
Oleg Kalnichevski b1bad18c8c Added inceptionYear to httpclient-cache and fluent-hc poms
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195711 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 22:50:56 +00:00
Sebastian Bazley e31aeb6f18 Fix EOL-style
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195659 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 20:39:38 +00:00
Sebastian Bazley 0732af01c1 Drop executable bit
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195657 13f79535-47bb-0310-9956-ffa450edef68
2011-10-31 20:38:59 +00:00
Oleg Kalnichevski 06f9c1031e Fluent HC site updates
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195177 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 15:31:46 +00:00
Oleg Kalnichevski bc6731e3ce Updated DOAP file
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195171 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:36:57 +00:00
Oleg Kalnichevski d7d7bb2bde Fixed javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195170 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:32:39 +00:00
Oleg Kalnichevski 00a3cfebc2 Updated download page for HttpClient 4.2-alpha1 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195169 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:32:16 +00:00
Oleg Kalnichevski f07eea0fb1 Removed file committed by mistake
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195166 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:16:38 +00:00
Oleg Kalnichevski 2c54131e0f Release notes for HttpClient 4.2-alpha1 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195163 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:09:02 +00:00
Oleg Kalnichevski cc7f8c248f More fluent API tweaks; added web site content
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195162 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:08:14 +00:00
Oleg Kalnichevski 41cfb9bbea Tweaked fluent API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1189929 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 18:50:52 +00:00
Oleg Kalnichevski d8b5071301 Renamed classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1189323 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 17:13:09 +00:00
Oleg Kalnichevski 66e7b84915 Rewrite of the fluent API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1189320 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 17:11:41 +00:00
Oleg Kalnichevski 732095943f Redesigned auth caching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1182515 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 18:33:15 +00:00
Oleg Kalnichevski 4d1b157272 Updated AuthState API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1182317 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 11:45:54 +00:00
Oleg Kalnichevski 9edd1acd4f HTTPCLIENT-1136: fixed synchronization problem in #releaseConnection method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181989 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 17:52:00 +00:00
Oleg Kalnichevski 2278378495 HTTPCLIENT-1129: Do not modify auth state on redirect if not redirecting to another host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181901 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 17:22:08 +00:00
Oleg Kalnichevski 09f10b0f6e Renamed test classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181740 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:10:43 +00:00
Oleg Kalnichevski 5d6404cbca BasicClientConnectionManager to replace SingleClientConnManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181739 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:10:20 +00:00
Oleg Kalnichevski 94dea64e63 HTTPCLIENT-1123: DNS resolver null parameter check
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181737 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:09:55 +00:00
Oleg Kalnichevski 960ee2f581 HTTPCLIENT-1123: fixed broken PoolingClientConnectionManager constructor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181208 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 20:18:24 +00:00
Oleg Kalnichevski d1450f9071 HTTPCLIENT-1123: added @since 4.2 tag
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181192 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 20:03:53 +00:00
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 61ab54d99d HTTPCLIENT-1135: RandomAccessFile mode w is not valid
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180373 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 13:12:12 +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