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

3664 Commits

Author SHA1 Message Date
Jesse Wilson
488b8f4039 [maven-release-plugin] prepare release parent-3.14.4 parent-3.14.4 2019-09-29 14:45:12 -04:00
Jesse Wilson
3865ee0d01 Merge pull request #5503 from square/jwilson.0926.unchecked_314x
Cancel calls on unexpected exceptions (3.14.x branch)
2019-09-26 23:08:56 -04:00
Jesse Wilson
4471395889 Cancel calls on unexpected exceptions (3.14.x branch)
Closes: https://github.com/square/okhttp/issues/5151
2019-09-26 22:58:08 -04:00
Jesse Wilson
c8833f644e Merge pull request #5486 from square/jwilson.0922.issue_3905_314
DiskLruCache snapshot() method removing entries that are being cached (3.14.x branch)
2019-09-23 06:44:00 -04:00
marcinbak
7938fbc8e1 DiskLruCache snapshot() method removing entries that are being cached (3.14.x branch)
Fixed a bug I found.
When using DiskLruCache, hasNext() method of Iterator<Snapshot> returned by snapshot() method iterates through lruEntries, however if entry is not completed yet, it is removed (together with dirtyFiles) as cleanFiles don't exist yet - during saving response to disk. This caused sometimes file not being cached at all.
2019-09-22 20:25:14 -04:00
Jesse Wilson
df3d48948a [maven-release-plugin] prepare for next development iteration 2019-09-10 17:47:42 -04:00
Jesse Wilson
9669149673 [maven-release-plugin] prepare release parent-3.14.3 parent-3.14.3 2019-09-10 17:47:36 -04:00
Jesse Wilson
55f9d53279 Merge pull request #5436 from square/jwilson.0909.cherry_pick_http2
Don't leak incoming bytes when we race incoming data and close (3.14.x branch)
2019-09-10 07:03:49 -04:00
Jesse Wilson
8af53d5da1 Merge pull request #5438 from square/jwilson.0909.atomic_settings
Acknowledge and apply inbound settings atomically (3.14.x branch)
2019-09-10 07:02:47 -04:00
Jesse Wilson
a7248061a3 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-09 18:06:50 -04:00
Jesse Wilson
eb053df891 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 17:56:35 -04:00
Jesse Wilson
9ce9d1afd1 Merge pull request #5351 from square/jwilson.0812.fix_flakiness
Fix flakiness in EventListenerTest.requestBodyFail().
2019-08-12 11:12:23 -04:00
Jesse Wilson
406a730eaa Merge pull request #5349 from square/recover-coal-conn
Recover from a coalesced connection that immediately goes unhealthy.
2019-08-12 11:12:10 -04:00
Jesse Wilson
8c63a6c42e Fix flakiness in EventListenerTest.requestBodyFail().
Saving 128 MiB of data is too much for CI
2019-08-12 10:31:44 -04:00
Dave Roberge
e9bffc4e77 Recover from a coalesced connection that immediately goes unhealthy. 2019-08-11 16:22:48 -05:00
Benoît Quenaudon
10abb264a7 Merge pull request #5182 from jemaystermind/jt/syntax-higlighting
Add syntax highlighting to code snippets in HTTPS.md
2019-06-11 10:21:13 -04:00
Jeremy Tecson
f215194007 Add syntax highlighting to code snippets in HTTPS.md 2019-06-10 21:09:28 +08:00
Jesse Wilson
08aa0a3dae Merge pull request #5175 from square/jwilson.0607.docs_3.14.x
Bring docs to the OkHttp 3.14.x branch
2019-06-07 23:50:19 -04:00
Jesse Wilson
8bb06e17df Move documentation images from the wiki into the main repo
Also address feedback from the initial documentation code review:
https://github.com/square/okhttp/pull/5171
2019-06-07 23:48:55 -04:00
Jesse Wilson
88a0d37a31 Cherry-pick docs from the 4.x branch to the 3.x branch 2019-06-07 23:48:49 -04:00
Jesse Wilson
065f231738 [maven-release-plugin] prepare for next development iteration 2019-05-19 13:34:34 -04:00
Jesse Wilson
b8b6ee831c [maven-release-plugin] prepare release parent-3.14.2 parent-3.14.2 2019-05-19 13:32:30 -04:00
Yuri Schimke
d1c4b1e486 Merge pull request #5068 from square/jwilson.0518.lock_in_route_
Lock in a route in hasRouteToTry() (3.14.x branch)
2019-05-19 07:48:21 +01:00
Jesse Wilson
5ecec36c2e Lock in a route in hasRouteToTry() (3.14.x branch)
Otherwise we end up making multiple calls to retryCurrentRoute()
and if it returns true then false we can fail to find a route on
a retry.

Closes: https://github.com/square/okhttp/issues/4875
2019-05-18 22:15:56 -04:00
Amir Livneh
ebe5c60130 Reproduce NoSuchElementException in RouteSelector.next() in a test
I was unable to write a test that reproduces https://github.com/square/okhttp/issues/4875 consistently, but this is the closest I got. When I run it repeatedly in IntelliJ, it fails about 1 out of 5 times.
2019-05-18 22:14:21 -04:00
Jesse Wilson
3ec8537bf5 Merge pull request #4976 from yschimke/another_branch_fix
3.14.x branch fix for travis
2019-04-25 01:52:50 -04:00
Yuri Schimke
5d8316b4d1 Testing branch fix 2019-04-24 20:30:42 +01:00
Yuri Schimke
baa96c23f4 Fix 3.14 snapshot builds in Travis after release (#4926) 2019-04-23 19:57:01 +01:00
Jesse Wilson
b2c85ba3dd Merge pull request #4936 from TangHuaiZhe/dev2
Fix #4915 nullPointerException caused by realConnection is null
2019-04-13 09:24:46 -04:00
Tang HuaiZhe
0db2005de3 Fix #4915 nullPointerException caused by realConnection is null 2019-04-13 18:34:19 +08:00
Yuri Schimke
a4c059967d Ignore dependency:resolve failure on 3.14 branch (#4924) 2019-04-10 21:02:04 +01:00
Jesse Wilson
03deb265b4 [maven-release-plugin] prepare for next development iteration 2019-04-10 12:07:38 -04:00
Jesse Wilson
a5c4668abf [maven-release-plugin] prepare release parent-3.14.1 parent-3.14.1 2019-04-10 12:07:33 -04:00
Jesse Wilson
2dc45fe576 Omit hpacktests from release 2019-04-10 09:59:15 -04:00
Jesse Wilson
3119db0a7f Merge pull request #4911 from square/jwilson.0308.better_exception_stacked_calls
Provide actionable advice when the exchange is non-null (3.x branch)
2019-04-09 22:11:46 -07:00
Yuri Schimke
df95c77adf Run a minimal circleci maven build on 3.14 branch (#4912)
Minimal build to clear errors on branch PRs
2019-04-09 06:55:45 +01:00
Jesse Wilson
ca961db9e9 Provide actionable advice when the exchange is non-null (3.x branch)
https://github.com/square/okhttp/issues/4761
2019-04-08 09:28:03 -04:00
Jesse Wilson
7f9d7801e1 Merge pull request #4901 from square/jwilson.0407.has_next
Don't crash on retry when there are no more routes (3.x branch)
2019-04-08 06:31:11 -04:00
Jesse Wilson
33f0d028a4 Don't crash on retry when there are no more routes (3.x branch)
https://github.com/square/okhttp/issues/4875
2019-04-07 21:30:11 -04:00
Jesse Wilson
0f87d95c7d OkHttp 3.14 is out 2019-03-14 00:24:22 -04:00
Jesse Wilson
695b46cb2e [maven-release-plugin] prepare for next development iteration 2019-03-13 23:42:40 -04:00
Jesse Wilson
44d51d0ceb [maven-release-plugin] prepare release parent-3.14.0 parent-3.14.0 2019-03-13 23:42:33 -04:00
Jesse Wilson
b5dc31409f Merge pull request #4708 from amirlivneh/fail-when-not-canceled
Fail recoverFromCancelReusesConnection() on unexpected response
2019-03-13 21:56:10 -04:00
Benoît Quenaudon
6c4855a7c7 Use AssertJ in tests (#4713) 2019-03-13 21:07:33 -04:00
Jesse Wilson
a217a390ee Merge pull request #4714 from amirlivneh/travis-verify
Run style check in Travis CI
2019-03-13 21:00:00 -04:00
Amir Livneh
d4afa4b9a4 Run style check in Travis CI 2019-03-13 16:55:03 -07:00
Amir Livneh
66ce79306b Merge pull request #4711 from amirlivneh/fix-style
Unbreak 'mvn verify'
2019-03-13 10:22:57 -07:00
Amir Livneh
f830f64916 Unbreak 'mvn verify' 2019-03-13 10:11:19 -07:00
Amir Livneh
829cd9c07f Fail recoverFromCancelReusesConnection() on unexpected response
This may help nail down the sporadic timeouts in this test.
2019-03-12 09:59:23 -07:00
Jesse Wilson
292764b156 Merge pull request #4705 from square/jwilson.0310.better_exceptions
Provide better exceptions when the shared HTTP/2 stream fails
2019-03-12 12:33:45 -04:00