Skip to content

Commit

Permalink
Prepare for release 4.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Dec 31, 2019
1 parent b2b2dd7 commit b63debd
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 12 deletions.
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
Change Log
==========

## Version 4.3.0

_2019-12-31_

* Fix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact
the stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after
a stream timeout to determine whether the connection should remain eligible for pooling.

* Fix: Don't call `EventListener.responseHeadersStart()` or `responseBodyStart()` until bytes have
been received. Previously these events were incorrectly sent too early, when OkHttp was ready to
read the response headers or body, which mislead tracing tools. Note that the `responseFailed()`
event always used to follow one of these events; now it may be sent without them.

* New: Upgrade to Kotlin 1.3.61.

* New: Match any number of subdomains with two asterisks in `CertificatePinner`. For example,
`**.squareup.com` matches `us-west.www.squareup.com`, `www.squareup.com` and `squareup.com`.

* New: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,
web sockets, and cache. OkHttp has a new internal task runner abstraction for managed task
scheduling. In your debugger you will see new thread names and more use of daemon threads.

* Fix: Don't drop callbacks on unexpected exceptions. When an interceptor throws an unchecked
exception the callback is now notified that the call was canceled. The exception is still sent
to the uncaught exception handler for reporting and recovery.

* Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp
4.0 but that broke method chaining for Java callers.

* Fix: Don't crash on HTTP/2 HEAD requests when the `Content-Length` header is present but is not
consistent with the length of the response body.

* Fix: Don't crash when converting a `HttpUrl` instance with an unresolvable hostname to a URI.
The new behavior strips invalid characters like `"` and `{` from the hostname before converting.

* Fix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior
between Kotlin's `assert()` and Java's `assert()`. (Kotlin always evaluates the argument; Java
only does when assertions are enabled.)

* Fix: Honor `RequestBody.isOneShot()` in `HttpLoggingInterceptor`.


## Version 4.2.2

_2019-10-06_
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
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.2.2/jar).
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.3.0/jar).

```kotlin
implementation("com.squareup.okhttp3:okhttp:4.2.2")
implementation("com.squareup.okhttp3:okhttp:4.3.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.2.2/jar).
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.3.0/jar).

```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.2")
testImplementation("com.squareup.okhttp3:mockwebserver:4.3.0")
```

License
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs='-Dfile.encoding=UTF-8'

GROUP=com.squareup.okhttp3
VERSION_NAME=4.3.0-SNAPSHOT
VERSION_NAME=4.3.0

POM_URL=https://github.com/square/okhttp
POM_SCM_URL=https://github.com/square/okhttp
Expand Down
2 changes: 1 addition & 1 deletion mockwebserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher);
### Download

```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.1")
testImplementation("com.squareup.okhttp3:mockwebserver:4.3.0")
```

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

```kotlin
implementation("com.squareup.okhttp3:okhttp-brotli:4.2.1")
implementation("com.squareup.okhttp3:okhttp-brotli:4.3.0")
```

[1]: https://github.com/google/brotli
2 changes: 1 addition & 1 deletion okhttp-dnsoverhttps/README.md
Original file line number Diff line number Diff line change
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.2.1")
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.3.0")
```
2 changes: 1 addition & 1 deletion okhttp-logging-interceptor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Download
--------

```kotlin
implementation("com.squareup.okhttp3:logging-interceptor:4.2.1")
implementation("com.squareup.okhttp3:logging-interceptor:4.3.0")
```


Expand Down
2 changes: 1 addition & 1 deletion okhttp-sse/README.md
Original file line number Diff line number Diff line change
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.2.1")
testImplementation("com.squareup.okhttp3:okhttp-sse:4.3.0")
```
2 changes: 1 addition & 1 deletion okhttp-tls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Download
--------

```kotlin
implementation("com.squareup.okhttp3:okhttp-tls:4.2.1")
implementation("com.squareup.okhttp3:okhttp-tls:4.3.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
Original file line number Diff line number Diff line change
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.2.1")
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.3.0")
```

0 comments on commit b63debd

Please sign in to comment.