Jesse Wilson
742866bbdd
Merge pull request #4519 from square/jwilson.0101.arms
...
Use automatic-resource-management blocks.
2019-01-01 22:16:55 -05:00
Jesse Wilson
a74901501e
Merge pull request #4517 from square/jwilson.0101.rename_alpn
...
Rename JdkWithJettyBootPlatform to Jdk8WithJettyBootPlatform
2019-01-01 21:52:34 -05:00
Jesse Wilson
716d697e8f
Merge pull request #4518 from square/jwilson.0101.select_bom
...
Use Okio select to find BOMs
2019-01-01 21:52:22 -05:00
Jesse Wilson
5f4a2642c0
Use automatic-resource-management blocks.
2019-01-01 21:50:44 -05:00
Jesse Wilson
744a92e5a9
Use Okio select to find BOMs
2019-01-01 21:33:50 -05:00
Jesse Wilson
03981be75f
Rename JdkWithJettyBootPlatform to Jdk8WithJettyBootPlatform
...
Also remove the convenience method for throwing AssertionErrors.
2019-01-01 21:26:34 -05:00
Jesse Wilson
0f5a7499e3
Merge pull request #4513 from amirlivneh/connection-leak
...
Fix connection leak in DuplexTest
2019-01-01 21:09:28 -05:00
Jake Wharton
9b9e5bd38d
hashCode and toString ( #4516 )
...
* Use Objects.hashCode from Java 7 / API 19
* Use Objects.toString from Java 7 / API 19
2019-01-01 21:06:54 -05:00
Amir Livneh
23958c1689
Fix connection leak in DuplexTest
2019-01-01 17:36:36 -05:00
Jesse Wilson
775d5d9d5c
Merge pull request #4512 from square/jwilson.0101.req_
...
Specify OkHttp's requirements
2019-01-01 12:51:56 -05:00
Jesse Wilson
4a5e5f73f7
Merge pull request #4511 from square/jwilson.0101.inspections
...
Run IntelliJ inspections on the codebase
2019-01-01 12:51:44 -05:00
Jesse Wilson
0dc50f1112
Run IntelliJ inspections on the codebase
...
Some nullability warnings, some diamond operators, adopting Objects.equals(),
and some dead code elimination.
2019-01-01 12:41:06 -05:00
Jesse Wilson
646368e266
Specify OkHttp's requirements
...
This is more about formalizing them than documenting them
2019-01-01 12:28:25 -05:00
Jesse Wilson
ded5e1fd26
Merge pull request #4509 from square/jwilson.0101.java_do_more
...
Adopt some Java 8 features: diamonds, StandardCharsets
2019-01-01 07:53:13 -05:00
Jesse Wilson
52e251836a
Adopt some Java 8 features: diamonds, StandardCharsets
2019-01-01 00:48:07 -05:00
Jesse Wilson
60d079f933
Merge pull request #4508 from square/jwilson.1231.android23
...
Drop code for Android 2.3 through 4.4.
2019-01-01 00:31:48 -05:00
Jesse Wilson
bdc7681b3b
Drop code for Android 2.3 through 4.4.
...
No more Gingerbread, Honeycomb, Ice Cream Sandwich, Jelly Bean or KitKat.
2018-12-31 23:59:40 -05:00
Jesse Wilson
8c9c00afb6
Merge pull request #4507 from square/jwilson.1231.java7
...
Get rid of some Java 7 stuff.
2018-12-31 23:22:30 -05:00
Jesse Wilson
fee3e530ad
Get rid of some Java 7 stuff.
...
Still more to do, but this is a start.
2018-12-31 21:58:41 -05:00
Jesse Wilson
862760ce9b
Merge pull request #4502 from square/jwilson.1230.doc_timeouts
...
Make sure default timeouts are documented explicitly.
2018-12-31 19:47:10 -05:00
Jesse Wilson
3fb74a60a0
Make sure default timeouts are documented explicitly.
...
Closes: https://github.com/square/okhttp/issues/4457
2018-12-31 17:03:03 -05:00
Jesse Wilson
904d4ded09
Merge pull request #4503 from square/jwilson.1230.clarify_boms
...
Clarify how the response charset is determined.
2018-12-30 22:13:26 -05:00
Jesse Wilson
f8a074a6b2
Merge pull request #4505 from square/swankjesse-patch-1
...
Update issue templates
2018-12-30 22:13:01 -05:00
Jesse Wilson
97ba258544
Update issue templates
2018-12-30 17:44:40 -05:00
Jesse Wilson
17239e61a4
Merge pull request #4479 from square/jwilson.1228.javadottime
...
Use java.time in Headers
2018-12-30 17:40:42 -05:00
Jesse Wilson
e3c9e9a439
Merge pull request #4504 from amirlivneh/reproduce-missing-callend
...
Test EventListener with empty response body and "Connection: close"
2018-12-30 15:27:51 -05:00
Amir Livneh
4ba15c8c3a
Test EventListener with empty response body and "Connection: close"
...
Reproduces https://github.com/square/okhttp/issues/4500 .
2018-12-30 13:59:59 -05:00
Jesse Wilson
05008284fb
Merge pull request #4501 from square/jwilson.1230.malformed_ipv6
...
Test malformed IPv6 addresses
2018-12-30 13:52:48 -05:00
Jesse Wilson
e8acc611aa
New issue templates
2018-12-30 13:42:51 -05:00
Jesse Wilson
5b7e16afb5
Clarify how the response charset is determined.
...
Closes: https://github.com/square/okhttp/issues/4456
2018-12-30 13:07:24 -05:00
Jesse Wilson
59997d8365
Merge pull request #4498 from amirlivneh/volatile-stream
...
Make Http2Codec.stream volatile
2018-12-30 11:13:48 -05:00
Jesse Wilson
8da92ebf99
Test malformed IPv6 addresses
...
I was worried we weren't handling this case correctly. Fortunately we are.
Closes: https://github.com/square/okhttp/issues/4451
2018-12-30 11:12:34 -05:00
Jesse Wilson
275d71b024
Merge pull request #4489 from square/jwilson.1229.no_server_certs
...
Exercise TLS with no server certificates
2018-12-30 10:37:42 -05:00
Amir Livneh
78a52d05c3
Make Http2Codec.stream volatile
...
It can be referenced from multiple threads.
I think there is still a thread safety issue with the Http2Stream class.
2018-12-30 10:08:08 -05:00
Jesse Wilson
c6823178c1
Exercise TLS with no server certificates
...
Closes: https://github.com/square/okhttp/issues/4427
2018-12-30 09:56:40 -05:00
Jesse Wilson
2c3eb51dbf
Merge pull request #4493 from amirlivneh/fix-test-connection-leak
...
Ensure streams are removed from connection within test lifetime
2018-12-30 09:50:56 -05:00
Jesse Wilson
e9619edabf
Merge pull request #4492 from amirlivneh/fix-call-cancellation-while-sending-request-headers
...
Fix call cancellation while sending request headers
2018-12-30 09:49:56 -05:00
Jesse Wilson
0729c2099a
Merge pull request #4494 from square/jwilson.1230.tls12
...
Move TLSv1 and TLSv1.1 to COMPATIBLE_TLS.
2018-12-30 09:48:46 -05:00
Jesse Wilson
70a75301b5
Merge pull request #4491 from square/jwilson.1229.dont_crash
...
Don't crash on IPv4-mapped IPv6 addresses
2018-12-30 08:18:50 -05:00
Jesse Wilson
0685dfaa7f
Move TLSv1 and TLSv1.1 to COMPATIBLE_TLS.
...
We no longer connect to TLSv1.0 or TLSv1.1 servers out-of-the-box; instead
it is necessary to enable COMPATIBLE_TLS in the OkHttpClient configuration.
This is in the path to later removing these TLS versions completely; that
is scheduled for March 2020 by some browsers.
https://github.com/square/okhttp/issues/4319
2018-12-30 00:18:19 -05:00
Amir Livneh
7e53755666
Ensure streams are removed from connection within test lifetime
...
After the recent fix, if the call is canceled while writing request headers, the stream is eventually removed from the connection. But this is done on a separate thread, and there was previously no guarantee that it would happen before tearDown() is called and the connection pool is evicted, preventing the connection from being evicted before the next test starts.
Together with https://github.com/square/okhttp/pull/4492 , this will hopefully fix https://github.com/square/okhttp/issues/4470 .
2018-12-29 21:11:49 -05:00
Amir Livneh
371b9f83d8
Fix call cancellation while sending request headers
2018-12-29 19:58:43 -05:00
Jesse Wilson
ab605ab8c5
Merge pull request #4488 from amirlivneh/failing-cancel-test
...
Test call cancellation while request headers are sent
2018-12-29 19:25:07 -05:00
Jesse Wilson
8c2a4cfffa
Don't crash on IPv4-mapped IPv6 addresses
...
https://github.com/square/okhttp/issues/4451
2018-12-29 18:32:07 -05:00
Amir Livneh
47a0b72c24
Test call cancellation while request headers are sent
...
Reproduce an issue where canceling an HTTP/2 request while request headers are sent has no effect.
Other than being a real issue, this may also be the root cause of https://github.com/square/okhttp/issues/4470 .
It seems to be related to the fact that the HTTP2Codec has no stream assigned at that point, so HTTP2Codec.cancel() is a no-op.
2018-12-29 09:01:44 -05:00
Jesse Wilson
555e621efe
Merge pull request #4480 from square/jwilson.1228.customize_dispatcher
...
Add an API to access MockWebServer's dispatcher.
2018-12-28 19:15:25 -05:00
Jesse Wilson
7dcd7e7142
Merge pull request #4482 from amirlivneh/httpoverhttp2test-cleanup
...
Remove duplicate connection pool eviction code
2018-12-28 19:13:47 -05:00
Amir Livneh
0bf3175826
Remove duplicate connection pool eviction code
...
tearDown() takes care of this.
2018-12-28 16:54:25 -05:00
Jesse Wilson
ef088de08d
Merge pull request #4478 from amirlivneh/assert-connection-eviction-in-test
...
Assert connection pool eviction in HttpOverHttp2Test.tearDown()
2018-12-28 16:43:40 -05:00
Jesse Wilson
5891eda08f
Merge pull request #4477 from square/jwilson.1228.new_versions
...
Get the latest versions of things.
2018-12-28 16:41:52 -05:00