Skip to content

Commit

Permalink
Prepare for release 4.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
swankjesse committed Apr 6, 2020
1 parent c1150b0 commit ca0c8d6
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 13 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,30 @@
Change Log
==========

## Version 4.5.0

_2020-04-06_

**This release fixes a severe bug where OkHttp incorrectly detected and recovered from unhealthy
connections.** Stale or canceled connections were incorrectly attempted when they shouldn't have
been, leading to rare cases of infinite retries. Please upgrade to this release!

* Fix: don't return stale DNS entries in `DnsOverHttps`. We were caching DNS results indefinitely
rather than the duration specified in the response's cache-control header.
* Fix: Verify certificate IP addresses in canonical form. When a server presents a TLS certificate
containing an IP address we must match that address against the URL's IP address, even when the
two addresses are encoded differently, such as `192.168.1.1` and `0::0:0:FFFF:C0A8:101`. Note
that OkHttp incorrectly rejected valid certificates resulting in a failure to connect; at no
point were invalid certificates accepted.
* New: `OkHttpClient.Builder.minWebSocketMessageToCompress()` configures a threshold for
compressing outbound web socket messages. Configure this with 0L to always compress outbound
messages and `Long.MAX_VALUE` to never compress outbound messages. The default is 1024L which
compresses messages of size 1 KiB and larger. (Inbound messages are compressed or not based on
the web socket server's configuration.)
* New: Defer constructing `Inflater` and `Deflater` instances until they are needed. This saves
memory if web socket compression is negotiated but not used.


## Version 4.5.0-RC1

_2020-03-17_
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -99,10 +99,10 @@ Releases

Our [change log][changelog] has release history.

The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.4.0/jar).
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.5.0/jar).

```kotlin
implementation("com.squareup.okhttp3:okhttp:4.4.0")
implementation("com.squareup.okhttp3:okhttp:4.5.0")
```

Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available.
Expand All @@ -113,10 +113,10 @@ MockWebServer

OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.

The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.4.0/jar).
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.5.0/jar).

```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.4.0")
testImplementation("com.squareup.okhttp3:mockwebserver:4.5.0")
```

License
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -90,7 +90,7 @@ ext.publishedArtifactId = { project ->
allprojects {
group = 'com.squareup.okhttp3'
project.ext.artifactId = rootProject.ext.publishedArtifactId(project)
version = '4.5.0-SNAPSHOT'
version = '4.5.0'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion mockwebserver/README.md
Expand Up @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher);
### Download

```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.4.0")
testImplementation("com.squareup.okhttp3:mockwebserver:4.5.0")
```

### License
Expand Down
2 changes: 1 addition & 1 deletion okhttp-brotli/README.md
Expand Up @@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder()
```

```kotlin
implementation("com.squareup.okhttp3:okhttp-brotli:4.4.0")
implementation("com.squareup.okhttp3:okhttp-brotli:4.5.0")
```

[1]: https://github.com/google/brotli
2 changes: 1 addition & 1 deletion okhttp-dnsoverhttps/README.md
Expand Up @@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
### Download

```kotlin
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.4.0")
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.5.0")
```
Expand Up @@ -47,7 +47,7 @@ import okhttp3.internal.publicsuffix.PublicSuffixDatabase
* ### Warning: This is a non-final API.
*
* As of OkHttp 3.14, this feature is an unstable preview: the API is subject to change, and the
* implementation is incomplete. We expect that OkHttp 4.0 or 4.1 will finalize this API. Until
* implementation is incomplete. We expect that OkHttp 4.6 or 4.7 will finalize this API. Until
* then, expect API and behavior changes when you update your OkHttp dependency.**
*
* [doh_spec]: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-13
Expand Down
2 changes: 1 addition & 1 deletion okhttp-logging-interceptor/README.md
Expand Up @@ -37,7 +37,7 @@ Download
--------

```kotlin
implementation("com.squareup.okhttp3:logging-interceptor:4.4.0")
implementation("com.squareup.okhttp3:logging-interceptor:4.5.0")
```


Expand Down
2 changes: 1 addition & 1 deletion okhttp-sse/README.md
Expand Up @@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
### Download

```kotlin
testImplementation("com.squareup.okhttp3:okhttp-sse:4.4.0")
testImplementation("com.squareup.okhttp3:okhttp-sse:4.5.0")
```
2 changes: 1 addition & 1 deletion okhttp-tls/README.md
Expand Up @@ -227,7 +227,7 @@ Download
--------

```kotlin
implementation("com.squareup.okhttp3:okhttp-tls:4.4.0")
implementation("com.squareup.okhttp3:okhttp-tls:4.5.0")
```

[held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/
Expand Down
2 changes: 1 addition & 1 deletion okhttp-urlconnection/README.md
Expand Up @@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav
### Download

```kotlin
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.4.0")
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.5.0")
```

0 comments on commit ca0c8d6

Please sign in to comment.