Changelog
*Sourced from [okhttp's changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md).*
> ## Version 4.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!
>
>
> ## Version 4.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.
>
> ```kotlin
> 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.
>
> ... (truncated)
Commits
- [`57a165b`](https://github.com/square/okhttp/commit/57a165b69c6551c1caec8a557e0e9c9abf54b536) Prepare for release 4.2.1.
- [`4c640ad`](https://github.com/square/okhttp/commit/4c640ad6c3016f49e753b5c86ab5c4d8b072bb66) Merge pull request [#5524](https://github-redirect.dependabot.com/square/okhttp/issues/5524) from square/jwilson.1002.cherrypick_poolfix
- [`1b4b6bb`](https://github.com/square/okhttp/commit/1b4b6bbc82206816ced207bb0132611f770c56cd) Fix connection pooling for different clients with the same pool.
- [`582f8ef`](https://github.com/square/okhttp/commit/582f8ef2f78cf001d479cb65831674289fd83af0) Prepare for release 4.2.0.
- [`9b60ca8`](https://github.com/square/okhttp/commit/9b60ca8e88445de48997d3391ae15417a6ef5d90) Merge pull request [#5434](https://github-redirect.dependabot.com/square/okhttp/issues/5434) from square/jwilson.0909.race
- [`510475a`](https://github.com/square/okhttp/commit/510475a21586fdf6010312a1950dca6e87cb6d2e) Don't leak incoming bytes when we race incoming data and close
- [`2cdbbda`](https://github.com/square/okhttp/commit/2cdbbda64a8f01c48658a2101aca206389b50878) Hows My Ssl test for Android ([#5428](https://github-redirect.dependabot.com/square/okhttp/issues/5428))
- [`3464ef3`](https://github.com/square/okhttp/commit/3464ef37e4fceb997df9c95cadce6fcc38102450) Merge pull request [#5431](https://github-redirect.dependabot.com/square/okhttp/issues/5431) from square/jwilson.0907.ack_apply_atomically
- [`bd6a97a`](https://github.com/square/okhttp/commit/bd6a97a7200dda2127a0a6b7167fef0d09febf27) Acknowledge and apply inbound settings atomically
- [`3490c7e`](https://github.com/square/okhttp/commit/3490c7ef9598e99bc298208f68022b36fecb21ce) Merge pull request [#5427](https://github-redirect.dependabot.com/square/okhttp/issues/5427) from square/jwilson.0905.decode_pems
- Additional commits viewable in [compare view](https://github.com/square/okhttp/compare/parent-3.2.0...parent-4.2.1)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps okhttp from 3.2.0 to 4.2.1.
Changelog
*Sourced from [okhttp's changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md).* > ## Version 4.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! > > > ## Version 4.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. > > ```kotlin > 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. > > ... (truncated)Commits
- [`57a165b`](https://github.com/square/okhttp/commit/57a165b69c6551c1caec8a557e0e9c9abf54b536) Prepare for release 4.2.1. - [`4c640ad`](https://github.com/square/okhttp/commit/4c640ad6c3016f49e753b5c86ab5c4d8b072bb66) Merge pull request [#5524](https://github-redirect.dependabot.com/square/okhttp/issues/5524) from square/jwilson.1002.cherrypick_poolfix - [`1b4b6bb`](https://github.com/square/okhttp/commit/1b4b6bbc82206816ced207bb0132611f770c56cd) Fix connection pooling for different clients with the same pool. - [`582f8ef`](https://github.com/square/okhttp/commit/582f8ef2f78cf001d479cb65831674289fd83af0) Prepare for release 4.2.0. - [`9b60ca8`](https://github.com/square/okhttp/commit/9b60ca8e88445de48997d3391ae15417a6ef5d90) Merge pull request [#5434](https://github-redirect.dependabot.com/square/okhttp/issues/5434) from square/jwilson.0909.race - [`510475a`](https://github.com/square/okhttp/commit/510475a21586fdf6010312a1950dca6e87cb6d2e) Don't leak incoming bytes when we race incoming data and close - [`2cdbbda`](https://github.com/square/okhttp/commit/2cdbbda64a8f01c48658a2101aca206389b50878) Hows My Ssl test for Android ([#5428](https://github-redirect.dependabot.com/square/okhttp/issues/5428)) - [`3464ef3`](https://github.com/square/okhttp/commit/3464ef37e4fceb997df9c95cadce6fcc38102450) Merge pull request [#5431](https://github-redirect.dependabot.com/square/okhttp/issues/5431) from square/jwilson.0907.ack_apply_atomically - [`bd6a97a`](https://github.com/square/okhttp/commit/bd6a97a7200dda2127a0a6b7167fef0d09febf27) Acknowledge and apply inbound settings atomically - [`3490c7e`](https://github.com/square/okhttp/commit/3490c7ef9598e99bc298208f68022b36fecb21ce) Merge pull request [#5427](https://github-redirect.dependabot.com/square/okhttp/issues/5427) from square/jwilson.0905.decode_pems - Additional commits viewable in [compare view](https://github.com/square/okhttp/compare/parent-3.2.0...parent-4.2.1)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.