Commit e493760a authored by Brian Carlstrom's avatar Brian Carlstrom
Browse files

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

Change-Id: I6862a092e2584398f7aa1d2a8b66ad074775b6b3
parent a6050e5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment