diff options
author | Brian Carlstrom <bdc@google.com> | 2010-11-15 18:15:32 -0800 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2010-11-16 17:08:39 -0800 |
commit | dbc42ad94ce37b3178e14b50496914c267d6cea6 (patch) | |
tree | 1f4452cdcf9057251408612e66bd864ce7612f20 /luni/src/test/java/tests/security/SecureRandomTest.java | |
parent | 5bcbe1c84468a25fec1e5b4e1dd636f917c73422 (diff) | |
download | libcore-dbc42ad94ce37b3178e14b50496914c267d6cea6.zip libcore-dbc42ad94ce37b3178e14b50496914c267d6cea6.tar.gz libcore-dbc42ad94ce37b3178e14b50496914c267d6cea6.tar.bz2 |
HttpsURLConnection fixes to pass URLConnectionTest and HttpsURLConnectionTest
Add public getSecureSocket so that HttpsURLConnection can reset its sslSocket field on reused connections.
luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpConnection.java
discardIntermediateResponse now maintain old values for
intermediateReponse, which is necessary when retrying the CONNECT
method with proxy authorization.
luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/HttpURLConnectionImpl.java
Clear sslSocket before retrying makeSslConnection to ensure we reconnect.
makeSslConnection now resets sslSocket on resumed connection.
makeSslConnection now exits early on existing connection.
luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/https/HttpsURLConnectionImpl.java
git cherry-pick -e 4df5be29bdffc09e7368c03423a0bef85fa26ac5
Bug: 3184701
Change-Id: Ida3c027f79e5e29968263ac761d4f4f79d063a27
Diffstat (limited to 'luni/src/test/java/tests/security/SecureRandomTest.java')
0 files changed, 0 insertions, 0 deletions