Jesse Wilson
b63debd827
Prepare for release 4.3.0.
parent-4.3.0
2019-12-31 16:39:08 -05:00
Jesse Wilson
b2b2dd7245
Merge pull request #5676 from square/jwilson.1231.restore_chaining
...
Un-deprecate some setters for chaining from Java
2019-12-31 15:28:24 -05:00
Jesse Wilson
a2c06073b1
Un-deprecate some setters for chaining from Java
...
Closes: https://github.com/square/okhttp/issues/5199
2019-12-31 15:23:14 -05:00
Jesse Wilson
bf85d1b103
Merge pull request #5195 from square/fix-content-length-of-http2-response-body
...
Correctly calculate HTTP2 response body size
2019-12-31 14:49:53 -05:00
Jesse Wilson
62cf6c24ef
Merge pull request #5674 from square/jwilson.1231.strip
...
Fix a crash in HttpUrl.toUri().
2019-12-31 14:43:33 -05:00
Jesse Wilson
bd675a830f
Merge pull request #5671 from square/jwilson.1230.debug_logging
...
Document debug logging.
2019-12-31 14:21:53 -05:00
Jesse Wilson
a815093721
Document debug logging.
...
Also refine the formatting of TaskRunner logging.
Before:
[2019-12-30 16:43:19] Q1 starting: OkHttp ConnectionPool
[2019-12-30 16:43:19] Q1 scheduled after 300 s: OkHttp ConnectionPool
[2019-12-30 16:43:19] Q1 finished in 94 µs: OkHttp ConnectionPool
[2019-12-30 16:43:19] Q359 scheduled after 0 µs: OkHttp www.youtube.com applyAndAckSettings
[2019-12-30 16:43:19] Q359 starting: OkHttp www.youtube.com applyAndAckSettings
[2019-12-30 16:43:19] Q361 schedule canceled (queue is shutdown): OkHttp www.youtube.com onSettings
[2019-12-30 16:43:19] Q359 finished in 382 µs: OkHttp www.youtube.com applyAndAckSettings
[2019-12-30 16:43:20] Q1 scheduled after 0 µs: OkHttp ConnectionPool
[2019-12-30 16:43:20] Q365 scheduled after 0 µs: OkHttp android-developers.googleblog.com applyAndAckSettings
[2019-12-30 16:43:20] Q1 starting: OkHttp ConnectionPool
[2019-12-30 16:43:20] Q365 starting: OkHttp android-developers.googleblog.com applyAndAckSettings
[2019-12-30 16:43:20] Q1 scheduled after 300 s: OkHttp ConnectionPool
[2019-12-30 16:43:20] Q1 finished in 151 µs: OkHttp ConnectionPool
After:
[2019-12-30 16:43:19] Q10001 starting : OkHttp ConnectionPool
[2019-12-30 16:43:19] Q10001 run again after 300 s : OkHttp ConnectionPool
[2019-12-30 16:43:19] Q10001 finished run in 94 µs: OkHttp ConnectionPool
[2019-12-30 16:43:19] Q10359 scheduled after 0 µs: OkHttp www.youtube.com applyAndAckSettings
[2019-12-30 16:43:19] Q10359 starting : OkHttp www.youtube.com applyAndAckSettings
[2019-12-30 16:43:19] Q10361 schedule canceled (queue is shutdown): OkHttp www.youtube.com onSettings
[2019-12-30 16:43:19] Q10359 finished run in 382 µs: OkHttp www.youtube.com applyAndAckSettings
[2019-12-30 16:43:20] Q10001 scheduled after 0 µs: OkHttp ConnectionPool
[2019-12-30 16:43:20] Q10365 scheduled after 0 µs: OkHttp android-developers.googleblog.com applyAndAckSettings
[2019-12-30 16:43:20] Q10001 starting : OkHttp ConnectionPool
[2019-12-30 16:43:20] Q10365 starting : OkHttp android-developers.googleblog.com applyAndAckSettings
[2019-12-30 16:43:20] Q10001 run again after 300 s : OkHttp ConnectionPool
[2019-12-30 16:43:20] Q10001 finished run in 151 µs: OkHttp ConnectionPool
2019-12-31 14:21:05 -05:00
Jesse Wilson
283418b2bc
Fix a crash in HttpUrl.toUri().
...
Closes: https://github.com/square/okhttp/issues/5667
Closes: https://github.com/square/okhttp/issues/5236
2019-12-31 12:40:01 -05:00
Jesse Wilson
b9e042284b
Merge pull request #5672 from square/jwilson.1230.await_idle
...
Fix crash on repeated MockWebServer shutdown
2019-12-31 10:20:01 -05:00
Jesse Wilson
edb5865b4c
Fix crash on repeated MockWebServer shutdown
...
The problem was the awaitIdle() call was scheduling executor jobs after
the ExecutorService had been shut down. This fixes that and defends
against other races.
2019-12-30 23:34:42 -05:00
Jesse Wilson
975be25e22
Merge pull request #5670 from square/jwilson.1230.time_to_first_byte
...
Defer EventListener events until bytes are returned
2019-12-30 13:11:42 -05:00
Jesse Wilson
53d2d794b9
Defer EventListener events until bytes are returned
...
This changes the timing of responseHeaderStart and responseBodyStart events to
fire when bytes are received from the server. This is a non-trivial behavior
change and should be documented as such in the release notes. In particular,
the responseFailed event may be fired without a preceding responseHeadersStart
event.
To test this I've added a timestamp to our CallEvent test facet.
Closes: https://github.com/square/okhttp/issues/5578
2019-12-30 13:11:17 -05:00
Jesse Wilson
767fa33350
Merge pull request #5669 from square/jwilson.1229.rel
...
Convert RecordingEventListener to Kotlin
2019-12-30 05:52:16 -05:00
Jesse Wilson
d52e2d34d6
Convert RecordingEventListener to Kotlin
2019-12-29 20:40:02 -05:00
Jesse Wilson
f7b10c2ae5
Merge pull request #5663 from square/jwilson.1224.failing_test
...
Failing test for NO_ERROR stream reset
2019-12-29 16:07:25 -05:00
Jesse Wilson
045062492b
Failing test for NO_ERROR stream reset
...
It turns out it'll be a bit difficult to fix this because we don't
currently support reading the response stream after an error.
https://github.com/square/okhttp/issues/4964
2019-12-24 09:02:19 -08:00
Yuri Schimke
13b9ae5e8e
Declare platform property to affect gradle build caching ( #5661 )
...
* Declare platform property to affect gradle build cache key
* Fix
2019-12-21 22:40:10 -10:00
Jesse Wilson
273c696c0b
Merge pull request #5659 from saket/saket/dec21/fix-404
...
Explicitly specify site-url for mkdocs
2019-12-21 17:58:02 -10:00
Saket Narayan
b20a6a8c15
Explicitly specify site-url for mkdocs
2019-12-21 17:58:47 -05:00
Jesse Wilson
c34a5eb728
Use our test rule instead of the Maven Surefire listener ( #5656 )
...
Closes: https://github.com/square/okhttp/issues/4894
2019-12-21 07:57:17 +00:00
Jesse Wilson
bc2113ec33
Merge pull request #5645 from square/jwilson.1212.debug_logging
...
Debug logging for TaskRunner
2019-12-20 13:16:59 -10:00
Jesse Wilson
584e8503a8
Debug logging for TaskRunner
...
This is intended to be useful in debugging and otherwise operating
OkHttp in anger.
2019-12-20 08:58:49 -10:00
Jesse Wilson
96e596117e
Use our test rule instead of the Maven Surefire listener
...
Closes: https://github.com/square/okhttp/issues/4894
2019-12-20 08:45:37 -10:00
Jesse Wilson
e1d9cd2d90
Merge pull request #5644 from gmarques33/patch-1
...
Fixing example
2019-12-12 21:23:31 -05:00
Giovanni Longatto Nazario Marques
e642cb8876
Fixing example
2019-12-13 00:11:44 +00:00
Yuri Schimke
9b68eca5f6
Remove JDK 12 (non-LTS) from CI ( #5642 )
...
Reduce per commit builds to minimal key platforms
2019-12-12 19:55:05 +00:00
Jesse Wilson
2a65bc7bf9
Fix TaskRunner handling of uncaught exceptions ( #5641 )
...
Previously an unchecked exception would starve the runner of
threads until another task was scheduled.
2019-12-09 07:18:19 +00:00
Jesse Wilson
a66a03384e
Merge pull request #5639 from yschimke/samples
...
Samples cleanup
2019-12-08 19:53:39 -05:00
Yuri Schimke
0b6c0d25d0
ErrorProne cleanup of two modules ( #5640 )
...
* Fix
* Fix 2
2019-12-08 19:49:27 -05:00
Jesse Wilson
09da07c2c8
Merge pull request #5638 from square/jwilson.1208.degraded_connections
...
Degrade connections after a timeout
2019-12-08 18:03:06 -05:00
Yuri Schimke
15b35c6807
Avoid running Corretto platform until fixed ( #5637 )
2019-12-08 21:44:22 +00:00
Yuri Schimke
b9d30d67ac
Samples cleanup
2019-12-08 21:30:01 +00:00
Jesse Wilson
b5efb41a63
Degrade connections after a timeout
...
This is based roughly on the 'Degraded Connections' proposal here
https://github.com/square/okhttp/issues/3146#issuecomment-471196032
I'm using 1000 ms instead of 500 ms. That's about the cost of a (slow)
TLS handshake, which is what callers would need to do if we degrade
unnecessarily.
2019-12-08 15:55:28 -05:00
Jesse Wilson
6d10746cd5
Merge pull request #5618 from sullis/gradle-6.0.1
...
Gradle 6.0.1
2019-12-08 13:20:58 -05:00
Yuri Schimke
6ef8999916
Kotlin bump to 1.3.61 and cleanup ( #5636 )
2019-12-08 17:11:50 +00:00
Jesse Wilson
fafb4f8125
Merge pull request #5633 from square/jwilson.1206.daemon
...
Don't use daemon threads in MockWebServer
2019-12-07 14:43:35 -05:00
Jesse Wilson
d26bfcaacd
Don't use daemon threads in MockWebServer
...
This was a regression introduced with the TaskRunner changes.
I couldn't find other places where daemon threads were likely
to cause potential problems.
https://github.com/square/okhttp/issues/5512
2019-12-07 13:26:22 -05:00
Jesse Wilson
2302a438bc
Merge pull request #5614 from fanofxiaofeng/patch-1
...
change the order of two parameters
2019-12-06 21:49:18 -05:00
Jesse Wilson
0590f83d21
Merge pull request #5631 from mageddo/bugfix/native-image-fix
...
Make okhttp native-image compatible
2019-12-04 20:40:02 -05:00
Jordan Stewart
7224f7bf4e
Actually remove SPDY_3 when configuring OkHttpClient protocols ( #5630 )
...
* Fix comment
* Actually remove SPDY_3 when configuring OkHttpClient protocols
2019-12-03 23:39:43 -05:00
Elvis de Freitas
78747b646c
refactoring from object expression to private inner class
2019-12-04 00:31:22 -03:00
Sean C. Sullivan
d010523aba
Gradle 6.0.1
...
Command: ./gradlew wrapper --gradle-version 6.0.1
2019-11-27 15:34:15 -05:00
靳阳
15f2790ae1
change the order of two parameters
...
The order of the two parameters seems to be inconsistent with the code on another page.
2019-11-23 17:53:23 +08:00
Jesse Wilson
7e4870537e
Merge pull request #5606 from square/jwilson.1117.entities
...
Don't use HTML entities in Markdown docs.
2019-11-18 23:53:15 -05:00
Jesse Wilson
abee17d93f
Don't use HTML entities in Markdown docs.
...
Closes: https://github.com/square/okhttp/issues/5593
2019-11-17 20:37:16 -05:00
Jesse Wilson
0790917be7
Merge branch 'DavidJRobertson-certificatepinner-subdomains'
...
* DavidJRobertson-certificatepinner-subdomains:
Support subdomains in CertificatePinner
2019-11-17 16:38:08 -05:00
David Robertson
4b0885860b
Support subdomains in CertificatePinner
2019-11-17 16:38:00 -05:00
Yuri Schimke
e60da2efe7
Bump Travis to JDK 11 ( #5601 )
...
* Bump Travis to JDK 11
* Testing
* Publish snapshots
* empty
* empty
* JDK 9
* OpenJDK 11
* Travis testing
* Skip master tests in Travis CI
* For landing
2019-11-17 15:13:29 -05:00
Yuri Schimke
7a641531c8
Kotlin optimized lock asserts ( #5604 )
...
Adds Kotlin optimized lock asserts, to work around the eager evaluation of the standard Kotlin assert.
2019-11-17 16:15:10 +00:00
Jesse Wilson
55b73f1eb4
Merge pull request #5591 from yschimke/android_test_after_corretto
...
Avoid Corretto and R8 incompatibility in tests
2019-11-10 10:49:43 -05:00