summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* DefaultRequestDirector should ignore IOExceptions from stale connectionscm-7.1.0gingerbread-releasegingerbreadgb-release-7.2Brian Carlstrom2011-01-301-1/+12
| | | | | | | | | | | | | | | The DefaultRequestDirector was letting IOExceptions from closing stale connections affect new requests. However, it was very common to received "SSL shutdown failed" exceptions in this case, since an SSL "close notify" message could not be sent. Now these and other IOExceptions are ignored so the request can continue with a new socket. Bug: 3405962 Bug: 3317717 git cherry-pick -e 843bcb6f4f65c0cdca327c6467813b88c52042f3 Change-Id: I443b4915f6473e07d74a37377dade6ac1f9f600c
* Don't leak sensitive information when logging cookies.Jesse Wilson2010-10-141-3/+21
| | | | | Change-Id: Id3a171f588fb545e14188e69e7bf6f2d4ef25b5c http://b/3095990
* Properly deprecate HttpRequestHandlerRegistry#matchUriRequestPattern.Jesse Wilson2010-09-101-1/+2
| | | | | | | | This needs a comment and an annotation. The original deprecation was submitted in HTTPCORE-148, in this patch: https://issues.apache.org/jira/secure/attachment/12376138/changes.txt Change-Id: I3b4c6e61f03a5f6ffc42ac1f02155f5c58b2e79c
* Cherry picking changes from dalvik-devBrian Carlstrom2010-08-185-42/+12
| | | | | | | | | git cherry-pick --no-commit 5648c97be2c515bdafeff3d8a4b07ea0ddc3e357 git cherry-pick --no-commit ffdb1757 git cherry-pick --no-commit 9340bb2a4b5f828b418c0e77492dde148623c938 git cherry-pick --no-commit af5c56d1 Change-Id: Ie910601ca27e1fcff90bbf0db5bd522bab8924f7
* add meta-files about 3rd party projectsThe Android Open Source Project2010-07-163-0/+29
| | | | Change-Id: Idadf71f9935d34f95e7df68a3ffb59e0d8f154b8
* b/2599994 Should call prepareSocket on underlying socket, not layered socketBrian Carlstrom2010-04-181-2/+12
| | | | | | | | | | | | | | | | | | | DefaultClientConnectionOperator.openConnection was recently changed to use LayeredSocketFactory.createSocket(Socket, ...) to create an SSLSocket around a plain java.net.Socket. However, this means code in LayeredSocketFactory.createSocket(Socket, ...) is called before socket options such as timeout are set by DefaultClientConnectionOperator.prepareSocket. However, the default org.apache.http.conn.ssl.SSLSocketFactory.createSocket(Socket, ...) performes the SSL handshake to perform hostname verification, meaning the handshake is performed without timeouts set. This change to DefaultClientConnectionOperator.openConnection moves the call prepareSocket to be on the underlying java.net.Socket before it is has the SSLSocket layered on top of it to prevent hangs during SSL handshakes. Change-Id: If705cc1acfe524281ec1338f73eccf7c0f4d1227
* Merge "Implement proper multihoming support, second attempt."Dan Egnor2010-03-092-12/+54
|\
| * Implement proper multihoming support, second attempt.Steinar H. Gunderson2010-03-052-12/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes our HTTP client multihoming-aware, so if one server fails for whatever reason (including timeout), we'll fall back to the next. It's a bit more complex than the first attempt, but we're hopefully not breaking SSL connection (incl. checkin) anymore. Also includes one patch from upstream, in that timeouts are converted from Java's exception hierarchy to our own exceptions. Here's an example tcpdump from a fake checkin server with both AAAA and A records, where the IPv6 connectivity is deliberately broken to demonstrate the effects of this patch: 11:49:28.202620 IP6 2620:0:105f:a:223:76ff:fe8d:3a3c.37109 > 2001:700:300:1880::2.80: S 24035192:24035192(0) win 5760 <mss 1440,sackOK,timestamp 1110775 0,[|tcp]> 11:49:31.211370 IP6 2620:0:105f:a:223:76ff:fe8d:3a3c.37109 > 2001:700:300:1880::2.80: S 24035192:24035192(0) win 5760 <mss 1440,sackOK,timestamp 1111075 0,[|tcp]> 11:49:37.211186 IP6 2620:0:105f:a:223:76ff:fe8d:3a3c.37109 > 2001:700:300:1880::2.80: S 24035192:24035192(0) win 5760 <mss 1440,sackOK,timestamp 1111675 0,[|tcp]> 11:49:48.216299 IP 74.125.57.33.58205 > 129.241.93.35.80: S 2632654863:2632654863(0) win 5840 <mss 1372,sackOK,timestamp 1112775 0,nop,wscale 1> 11:49:48.216324 IP 129.241.93.35.80 > 74.125.57.33.58205: S 3149921981:3149921981(0) ack 2632654864 win 5792 <mss 1460,sackOK,timestamp 62633484 1112775,nop,wscale 8> (...) and then the HTTP connection proceeds as usual. I intend to push this fix upstream once we get it reviewed and committed locally.
* | Add an empty CleanSpec.mkJean-Baptiste Queru2010-03-081-0/+49
| | | | | | | | Change-Id: Ib47597b8cc98c33caf8588bc270ac811194e6f74
* | Fix lineFromReadBuffer() so it no longer tries to skip backwardsDan Bornstein2010-03-051-1/+5
|/ | | | | | | | past the start of the read buffer. Fixes internal bug #2183785. Change-Id: I2a371e88a6816f4c1e237ae4cdb8baade4de66c9
* Revert "Implement proper multihoming support, so if one server fails for ↵Kenny Root2010-02-262-34/+16
| | | | | | whatever reason" This reverts commit ceab342827538782a715a10e5030a222700895ce.
* Implement proper multihoming support, so if one server fails for whatever reasonSteinar H. Gunderson2010-02-262-16/+34
| | | | | | | | | | | | | | | | | | | | | | (including timeout), we'll fall back to the next. Also includes one patch from upstream, in that timeouts are converted from Java's exception hierarchy to our own exceptions. Here's an example tcpdump from a fake checkin server with both AAAA and A records, where the IPv6 connectivity is deliberately broken to demonstrate the effects of this patch: 11:49:28.202620 IP6 2620:0:105f:a:223:76ff:fe8d:3a3c.37109 > 2001:700:300:1880::2.80: S 24035192:24035192(0) win 5760 <mss 1440,sackOK,timestamp 1110775 0,[|tcp]> 11:49:31.211370 IP6 2620:0:105f:a:223:76ff:fe8d:3a3c.37109 > 2001:700:300:1880::2.80: S 24035192:24035192(0) win 5760 <mss 1440,sackOK,timestamp 1111075 0,[|tcp]> 11:49:37.211186 IP6 2620:0:105f:a:223:76ff:fe8d:3a3c.37109 > 2001:700:300:1880::2.80: S 24035192:24035192(0) win 5760 <mss 1440,sackOK,timestamp 1111675 0,[|tcp]> 11:49:48.216299 IP 74.125.57.33.58205 > 129.241.93.35.80: S 2632654863:2632654863(0) win 5840 <mss 1372,sackOK,timestamp 1112775 0,nop,wscale 1> 11:49:48.216324 IP 129.241.93.35.80 > 74.125.57.33.58205: S 3149921981:3149921981(0) ack 2632654864 win 5792 <mss 1460,sackOK,timestamp 62633484 1112775,nop,wscale 8> (...) and then the HTTP connection proceeds as usual. I intend to push this fix upstream once we get it reviewed and committed locally.
* am c5718a3d: reconcile main tree with open-source eclairThe Android Open Source Project2010-02-050-0/+0
|\ | | | | | | | | | | | | Merge commit 'c5718a3d3d1786d57998315641361809d8f03e79' into eclair-plus-aosp * commit 'c5718a3d3d1786d57998315641361809d8f03e79': android-2.1_r1 snapshot
| * reconcile main tree with open-source eclairThe Android Open Source Project2010-02-050-0/+0
| |\
| | * reconcile android-2.1_r1 snapshotThe Android Open Source Project2010-01-290-0/+0
| |/|
| | * android-2.1_r1 snapshotThe Android Open Source Project2010-01-120-0/+0
| | |
* | | merge from open-source masterJean-Baptiste Queru2009-09-040-0/+0
|\ \ \ | |/ / |/| |
| * | merge from donutJean-Baptiste Queru2009-09-032-0/+193
| |\|
* | | am 58fb7313: Add license-related filesJean-Baptiste Queru2009-08-182-0/+193
|\ \ \ | |/ / |/| / | |/ | | | | | | Merge commit '58fb7313fe53a7ce5fb153e79560719e06058a4b' into eclair * commit '58fb7313fe53a7ce5fb153e79560719e06058a4b': Add license-related files
| * Add license-related filesJean-Baptiste Queru2009-08-172-0/+193
| | | | | | | | BUG=1573996
* | Merge donut into masterJean-Baptiste Queru2009-04-220-0/+0
|\|
* | Merge branch 'open_source_no_contributions' into google_internalThe Android Open Source Project2009-03-290-0/+0
|\ \ | |/ |/|
| * Merge commit 'remotes/korg/cupcake' into cupcake_to_masterJean-Baptiste Queru2009-03-181-0/+13
| |\ | |/ |/|
* | auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03431-0/+60872
| |
* | auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03431-60859/+0
| |
* | auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-13/+0
| |
* | auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-0/+13
|/
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-170-0/+0
|
* Initial ContributionThe Android Open Source Project2008-10-21431-0/+60859