1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-14 07:22:20 +03:00
Commit Graph

4225 Commits

Author SHA1 Message Date
Jesse Wilson
57a165b69c Prepare for release 4.2.1. parent-4.2.1 2019-10-02 08:53:27 -04:00
Jesse Wilson
4c640ad6c3 Merge pull request #5524 from square/jwilson.1002.cherrypick_poolfix
Fix connection pooling for different clients with the same pool. (4.2.x branch)
2019-10-02 08:07:35 -04:00
Jesse Wilson
1b4b6bbc82 Fix connection pooling for different clients with the same pool.
Closes: https://github.com/square/okhttp/issues/5519
2019-10-02 07:58:59 -04:00
Jesse Wilson
582f8ef2f7 Prepare for release 4.2.0. parent-4.2.0 2019-09-10 13:04:12 -04:00
Jesse Wilson
9b60ca8e88 Merge pull request #5434 from square/jwilson.0909.race
Don't leak incoming bytes when we race incoming data and close
2019-09-09 17:37:30 -04:00
Jesse Wilson
510475a215 Don't leak incoming bytes when we race incoming data and close
We had a bug where a race between FramingSource.receive() and
FramingSource.close() could cause newly-received bytes to be
absent from the flow control window. If this happens enough then
eventually the connection will stall.
2019-09-09 14:47:29 -04:00
Yuri Schimke
2cdbbda64a Hows My Ssl test for Android (#5428) 2019-09-09 12:01:08 +01:00
Jesse Wilson
3464ef37e4 Merge pull request #5431 from square/jwilson.0907.ack_apply_atomically
Acknowledge and apply inbound settings atomically
2019-09-08 07:20:13 -04:00
Jesse Wilson
bd6a97a720 Acknowledge and apply inbound settings atomically
Closes: https://github.com/square/okhttp/issues/5422

Unfortunately testing this is awkward because it's racy. I did
run a stress test that used to reproduce the problem, and now it
doesn't, so I am satisfied.
2019-09-07 20:46:09 -04:00
Jesse Wilson
3490c7ef95 Merge pull request #5427 from square/jwilson.0905.decode_pems
Make it easier to decode PEM files
2019-09-07 18:26:15 -04:00
Yuri Schimke
ba2c676aaf Handshake returns cleaned peer certificates (#5311)
* Pass through clean certificates in Handshake

* Actual do the work

* Add test that cleaner is called

* Defer work

* cleanup

* Clean certs in deprecated method also

* Revert more

* Inline

* Review comments
2019-09-07 16:05:49 -04:00
Jesse Wilson
93c5bcc6cb Make it easier to decode PEM files
I'm starting with the thing I want first; reusing a HeldCertificate
across VM invocations.

Later we might want to create entire HandshakeCertificates objects
by stringing together many certificates from a single file.
2019-09-07 15:58:47 -04:00
Jesse Wilson
6f178869ac Merge pull request #5423 from square/jwilson.0905.windows
Change the way flow control windows are tracked.
2019-09-06 08:57:17 -04:00
Jesse Wilson
4d16875eab Change the way flow control windows are tracked.
Previously we tracked how many bytes we had left in a single value. With
this updatee we track the current value and the budget separately. I am
not worried about overflowing Long.MAX_VALUE.

I made this change in the process of diagnosing this:
https://github.com/square/okhttp/issues/5422
2019-09-06 08:24:46 -04:00
Jesse Wilson
4a573f54cf Merge pull request #5417 from square/jwilson.0905.release_411
Update the changelog for 4.1.1.
2019-09-05 00:31:16 -04:00
Jesse Wilson
1b97ce67e9 Update the changelog for 4.1.1. 2019-09-05 00:30:48 -04:00
Jesse Wilson
c385ee6da6 Merge pull request #5416 from square/jwilson.0904.okhttp_3_12_4
OkHttp 3.12.4 is released
2019-09-05 00:06:11 -04:00
Jesse Wilson
69e6522466 OkHttp 3.12.4 is released 2019-09-05 00:05:15 -04:00
Jesse Wilson
7f4a13836b Merge pull request #5415 from square/jwilson.0904.fix_cache_regression
Fix a regression in combining cache headers
2019-09-05 00:03:39 -04:00
Jesse Wilson
a1265b6140 Fix a regression in combining cache headers
This was introduced with our migration to Kotlin. Iterating over the indices
of the header names doesn't work because header names are not distinct.

Closes: https://github.com/square/okhttp/issues/5413
2019-09-04 23:58:58 -04:00
Jesse Wilson
1b2a0dd89c Merge pull request #5410 from square/jwilson.0903.version_changelog
Divide up our changelog by major version
2019-09-04 07:38:12 -04:00
Jesse Wilson
93dbbcaef8 Divide up our changelog by major version
The current doc is just so long.

This also sorts older versions by version number instead of release date.
2019-09-03 23:19:07 -04:00
Yuri Schimke
3d95c4b1f7 Android Test Fixes for OpenJSSE (#5407)
* Android Test Fixes for OpenJSSE

* Specific fixes
2019-09-03 22:24:29 -04:00
Jesse Wilson
e0e191bb88 Merge pull request #5396 from thescouser89/documentation
Update README.md to match example code for POST
2019-08-24 12:13:21 -04:00
Dustin Kut Moy Cheung
85516b9812 Update README.md to match example code for POST
The "Post to a Server" section in the README is using the deprecated
method for creating a new `RequestBody`. This commit uses the
recommended method for the README, but also now matches the example in
`PostExample.java`
2019-08-24 10:38:23 -04:00
Jesse Wilson
35591b2d77 Merge pull request #5391 from square/yschimke-patch-1
Brotli Interceptor docs
2019-08-23 21:41:32 -04:00
Jesse Wilson
440a047b38 Merge pull request #5393 from yschimke/kotlin_upgrade
Kotlin 1.3.50
2019-08-23 20:58:02 -04:00
Yuri Schimke
76cbee7c15 Kotlin 1.3.50 2019-08-23 18:21:42 -04:00
Yuri Schimke
1d293fa062 Brotli Interceptor docs 2019-08-23 17:43:31 -04:00
Jesse Wilson
e40915bf77 Merge pull request #5362 from square/jwilson.0813.releasing
Include prerequisites in the releasing guide.
2019-08-21 16:36:37 -04:00
Yuri Schimke
caf79c75ad Bump CI JDK versions (#5386) 2019-08-21 19:45:36 +01:00
Yuri Schimke
ad08afb07f Avoid running openjsse on each PR (#5381) 2019-08-18 12:13:10 +03:00
Yuri Schimke
7cf508a30b OpenJSSE Platform support (#5369)
Adds support for OpenJSSE when registered as the first security provider.
2019-08-18 12:03:51 +03:00
Jesse Wilson
a1994dab34 Update the libraries that work with OkHttp (#5366)
* Update the libraries that work with OkHttp

This prunes a few that haven't been updated and appear obsolete.

* Update works_with_okhttp.md
2019-08-17 21:44:22 -04:00
Jesse Wilson
18145235eb Merge pull request #5375 from square/jakew/header-logging-fix/2019-08-17
Ensure overridden content length/type headers are logged
2019-08-17 21:26:58 -04:00
Jake Wharton
987d2848fd Ensure overridden content length/type headers are logged 2019-08-17 10:18:25 -04:00
Jesse Wilson
bd33a78ef7 Merge pull request #5368 from yschimke/cleanup2
Code cleanup post review
2019-08-14 08:03:44 -04:00
Yuri Schimke
44cd4241a7 Code cleanup post review 2019-08-14 13:20:49 +03:00
Jesse Wilson
b2c2e7237a Merge pull request #5347 from yschimke/android_session_reuse
Test Android session reuse
2019-08-13 22:48:45 -04:00
Yuri Schimke
9aaf7d83f9 More supported socket types on Android (#5243)
* More supported socket types on Android

* Fix?

* Avoid JDK 9 field

* testing

* Working with all 3

* Cleanup

* Fixes

* Review comments

* copyright

* Remove lazy

* Remove lazy

* Skip conscrypt if not available
2019-08-13 22:46:49 -04:00
Yuri Schimke
fbf24d26fb Test for OpenJSSE (#5348)
* Test for OpenJSSE

* Test for tls version

* Comment

* Fix

* Copyright

* Explore public socket API

* Fix platform testing

* Test socket type

* Revert circleci change
2019-08-13 21:06:01 -04:00
Jesse Wilson
99b83a3b20 Include prerequisites in the releasing guide.
https://github.com/cashapp/barber/blob/master/docs/releasing.md
2019-08-13 11:14:59 -04:00
Yuri Schimke
22ce72a17c Revert build change that broke jdk8alpn (#5358)
* Revert build change that broke jdk8alpn

* revert ci change
2019-08-12 15:08:19 -04:00
Jesse Wilson
06f1c7522c Prepare next development version. 2019-08-12 13:00:11 -04:00
Jesse Wilson
4739b27806 Prepare for release 4.1.0. parent-4.1.0 2019-08-12 13:00:00 -04:00
Jesse Wilson
96fbf6b330 Merge pull request #5356 from square/jwilson.0812.no_application_plugin
Remove the application plugin from okcurl
2019-08-12 11:58:47 -04:00
Jesse Wilson
db39fa4a93 Remove the application plugin from okcurl
I can't have both this and shadow concurrently because they both attempt
to use the same classifier when publishing.
2019-08-12 11:55:55 -04:00
Yuri Schimke
f070df4ccc New OpenJDK 8 version (#5354) 2019-08-12 16:26:23 +01:00
Yuri Schimke
1b60e3739c Test Android session reuse 2019-08-11 10:48:43 +01:00
Yuri Schimke
1994136a24 Update test host to squareup (#5343) 2019-08-10 17:20:43 +01:00