Skip to content

Update dependency com.squareup.okhttp3:okhttp to v4.2.2 #1702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Update dependency com.squareup.okhttp3:okhttp to v4.2.2 #1702

merged 1 commit into from
Nov 12, 2019

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Nov 9, 2019

This PR contains the following updates:

Package Update Change
com.squareup.okhttp3:okhttp (source) minor 4.0.1 -> 4.2.2

Release Notes

square/okhttp

v4.2.2

2019-10-06

  • Fix: When closing a canceled HTTP/2 stream, don't send the END_STREAM flag. This could cause
    the server to incorrectly interpret the stream as having completed normally. This is most useful
    when a request body needs to cancel its own call.

v4.2.1

2019-10-02

  • Fix: In 4.1.0 we introduced a performance regression that prevented connections from being
    pooled in certain situations. We have good test coverage for connection pooling but we missed
    this because it only occurs if you have proxy configured and you share a connection pool among
    multiple OkHttpClient instances.

    This particularly-subtle bug was caused by us assigning each OkHttpClient instance its own
    NullProxySelector when an explicit proxy is configured. But we don't share connections when
    the proxy selectors are different. Ugh!

v4.2.0

2019-09-10

  • New: API to decode a certificate and private key to create a HeldCertificate. This accepts a
    string containing both a certificate and PKCS #​8-encoded private key.

    val heldCertificate = HeldCertificate.decode("""
        |-----BEGIN CERTIFICATE-----
        |MIIBYTCCAQegAwIBAgIBKjAKBggqhkjOPQQDAjApMRQwEgYDVQQLEwtlbmdpbmVl
        |cmluZzERMA8GA1UEAxMIY2FzaC5hcHAwHhcNNzAwMTAxMDAwMDA1WhcNNzAwMTAx
        |MDAwMDEwWjApMRQwEgYDVQQLEwtlbmdpbmVlcmluZzERMA8GA1UEAxMIY2FzaC5h
        |cHAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASda8ChkQXxGELnrV/oBnIAx3dD
        |ocUOJfdz4pOJTP6dVQB9U3UBiW5uSX/MoOD0LL5zG3bVyL3Y6pDwKuYvfLNhoyAw
        |HjAcBgNVHREBAf8EEjAQhwQBAQEBgghjYXNoLmFwcDAKBggqhkjOPQQDAgNIADBF
        |AiAyHHg1N6YDDQiY920+cnI5XSZwEGhAtb9PYWO8bLmkcQIhAI2CfEZf3V/obmdT
        |yyaoEufLKVXhrTQhRfodTeigi4RX
        |-----END CERTIFICATE-----
        |-----BEGIN PRIVATE KEY-----
        |MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCA7ODT0xhGSNn4ESj6J
        |lu/GJQZoU9lDrCPeUcQ28tzOWw==
        |-----END PRIVATE KEY-----
        """.trimMargin())
    val handshakeCertificates = HandshakeCertificates.Builder()
        .heldCertificate(heldCertificate)
        .build()
    val server = MockWebServer()
    server.useHttps(handshakeCertificates.sslSocketFactory(), false)

    Get these strings with HeldCertificate.certificatePem() and privateKeyPkcs8Pem().

  • Fix: Handshake now returns peer certificates in canonical order: each certificate is signed by
    the certificate that follows and the last certificate is signed by a trusted root.

  • Fix: Don't lose HTTP/2 flow control bytes when incoming data races with a stream close. If this
    happened enough then eventually the connection would stall.

  • Fix: Acknowledge and apply inbound HTTP/2 settings atomically. Previously we had a race where we
    could use new flow control capacity before acknowledging it, causing strict HTTP/2 servers to
    fail the call.

v4.1.1

2019-09-05

  • Fix: Don't drop repeated headers when validating cached responses. In our Kotlin upgrade we
    introduced a regression where we iterated the number of unique header names rather than then
    number of unique headers. If you're using OkHttp's response cache this may impact you.

v4.1.0

2019-08-12

  • OkHttp's new okhttp-brotli module implements Brotli compression. Install the interceptor to
    enable Brotli compression, which compresses 5-20% smaller than gzip.

    val client = OkHttpClient.Builder()
        .addInterceptor(BrotliInterceptor)
        .build()
    

    This artifact has a dependency on Google's Brotli decoder (95 KiB).

  • New: EventListener.proxySelectStart(), proxySelectEnd() events give visibility into the
    proxy selection process.

  • New: Response.byteString() reads the entire response into memory as a byte string.

  • New: OkHttpClient.x509TrustManager accessor.

  • New: Permit [new WebSocket response codes][iana_websocket]: 1012 (Service Restart), 1013 (Try
    Again Later), and 1014 (invalid response from the upstream).

  • New: Build with Kotlin 1.3.41, BouncyCastle 1.62, and Conscrypt 2.2.1.

  • Fix: Recover gracefully when a coalesced connection immediately goes unhealthy.

  • Fix: Defer the SecurityException when looking up the default proxy selector.

  • Fix: Don't use brackets formatting IPv6 host names in MockWebServer.

  • Fix: Don't permit cache iterators to remove entries that are being written.


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@renovate-bot renovate-bot requested a review from a team November 9, 2019 01:33
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 9, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2019
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 9, 2019
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup.okhttp3:okhttp to v4.2.2 Update dependency com.squareup.okhttp3:okhttp to v4.2.2 Nov 12, 2019
@kurtisvg kurtisvg added the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 12, 2019
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 12, 2019
@kurtisvg kurtisvg merged commit ec4ad53 into GoogleCloudPlatform:master Nov 12, 2019
@renovate-bot renovate-bot deleted the renovate/com.squareup.okhttp3-okhttp-4.x branch November 12, 2019 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants