Jesse Wilson
23b6f7556d
[maven-release-plugin] prepare release parent-3.9.1
parent-3.9.1
2017-11-18 14:37:50 -05:00
Jesse Wilson
a4878313c5
Merge pull request #3692 from yschimke/alpnversions
...
new JDK releases, add alpn-boot versions
list
2017-11-17 19:32:59 -05:00
Yuri Schimke
d73bc9625a
new JDK releases, add alpn-boot versions
2017-11-18 08:21:05 +08:00
Jesse Wilson
a792fec95f
Merge pull request #3691 from yschimke/workaround_broken_dns_behaviour
...
workaround broken system dns behaviour
2017-11-17 16:30:34 -05:00
Yuri Schimke
c310d27440
workaround broken system dns behaviour
2017-11-17 19:02:26 +08:00
Jesse Wilson
fc93011762
Merge pull request #3674 from EricEdens/master
...
Ensure encodedQuery doesn't include the URL's fragment
2017-11-05 17:28:47 -05:00
Eric Edens
a1c44a9e28
Ensure encodedQuery doesn't include the URL's fragment
2017-11-04 20:39:02 -07:00
Eric Cochran
d9091b357b
Update ProGuard config to account for resource loading.
2017-10-11 14:19:41 -04:00
Markéta Lisová
aed2224547
Add workaround for https://issuetracker.google.com/issues/63649622 ( #3624 )
...
* Add workaround for https://issuetracker.google.com/issues/63649622
This fixes #3438
* Rethrowing the Android O bug CCE as IOException
2017-09-25 09:05:25 +01:00
Jesse Wilson
525db987a5
Merge pull request #3613 from yschimke/hardcoded
...
Hardcode header limit to 256 KiB
2017-09-18 01:45:30 -04:00
Yuri Schimke
dffec3e547
256 KiB always
2017-09-18 06:16:36 +01:00
Yuri Schimke
3fe86b348e
256kB header limit ( #3602 )
...
* 100k header limit
* 256k limit
2017-09-17 15:38:40 -04:00
Yuri Schimke
1d9c158a96
Platform cleanup - move trust manager building internal ( #3611 )
...
* Platform cleanup move trust manager building internal
* typo
* missing commit
2017-09-17 15:35:44 -04:00
Jake Wharton
7e040c0945
Merge pull request #3603 from square/yschimke-patch-1
...
Fix travis build
2017-09-12 09:10:17 -04:00
Yuri Schimke
d6fd0d3832
Fix travis build
2017-09-12 08:32:24 +01:00
jwilson
b926a030c6
Add samples for EventListener
2017-09-06 12:11:37 -04:00
Jesse Wilson
dcabf48ecc
3.9.0 is out
2017-09-04 18:05:39 -04:00
jwilson
51311219af
[maven-release-plugin] prepare for next development iteration
2017-09-04 17:00:21 -04:00
jwilson
51663fd08f
[maven-release-plugin] prepare release parent-3.9.0
parent-3.9.0
2017-09-04 17:00:16 -04:00
Jesse Wilson
1596e57ba0
Fix some strict Javadoc HTML rules in EventListener ( #3581 )
2017-09-04 16:55:41 -04:00
Jesse Wilson
6fab1a323b
Add a prerelease warning to EventListener ( #3580 )
2017-09-04 16:16:45 -04:00
Warren Smith
c323eb2814
Add 'of' to Connection JavaDoc. ( #3579 )
2017-09-04 14:57:35 -04:00
jwilson
2696b4a439
More changelog copy editing.
2017-09-04 14:47:53 -04:00
Jesse Wilson
b6aa9fe782
Add tests to demonstrate events bugs ( #3578 )
2017-09-04 02:39:46 -04:00
jwilson
c0f3652167
Copy-edit the updated changelog
2017-09-03 23:40:11 -04:00
jwilson
360b2d40ee
Update the changelog for 3.9.0.
2017-09-03 23:37:08 -04:00
Jesse Wilson
3646138247
Don't summarize the request and response headers. ( #3576 )
...
Just pass the Request and Response objects in directly.
2017-09-03 19:35:56 -04:00
Yuri Schimke
6cddc8973a
Close all Response in samples ( #3574 )
2017-09-02 11:05:43 +01:00
Jesse Wilson
33d31d073e
Improve handling of HEAD requests with a Content-Length specified. ( #3572 )
...
Rather than getting the content length from a header on demand, this gets it
at the time that the RealResponseBody is created. This means that HEAD requests
can have a non-zero Content-Length header while their bodies have no content.
Closes: https://github.com/square/okhttp/issues/3365
2017-09-01 17:27:26 -04:00
Jesse Wilson
6663f063e6
The WebSocketWriter is single-threaded. ( #3571 )
...
We were synchronizing to permit multiple writer threads. But that was a carry-over
from the previous design where we supported multiple writer threads. With the
current implementation only one thread writes at a time. This synchronization
was not necessary.
2017-09-01 12:48:55 -04:00
Jesse Wilson
a95ec06a50
Fix a race in WebSocketHttpTest. ( #3570 )
...
We were assuming on a client failure the server wouldn't have any
further events. But it will get a failure if we give it a moment.
This was causing some test flakiness.
2017-09-01 12:39:24 -04:00
Jesse Wilson
77471444ec
Don't report connectionAcquired until actually connected. ( #3566 )
...
Currently our implementation acquires the connection early so that we have
something to close if the call is canceled. Event listeners are simpler if
they only get a connectionAcquired event once the connection has been
actually established.
2017-09-01 01:40:37 -04:00
Jesse Wilson
6f029dd3de
Fix MockWebServer websockets to be thread safe. ( #3567 )
...
Closing the sink while another thread is writing the sink is a
potential source for races.
Closes: https://github.com/square/okhttp/issues/3138
2017-08-31 21:33:47 -04:00
jwilson
9f8200d1e0
Merge branch 'jwilson.0830.charset_challenge'
...
* jwilson.0830.charset_challenge:
Add charset support for RFC 7617 challenges
2017-08-31 16:26:28 -04:00
Erik Ghonyan
b3ecb0a6c9
Add charset support for RFC 7617 challenges
2017-08-31 16:18:55 -04:00
Dave Roberge
abe5d62bcf
Recover from an already-allocated connection that restricts new streams. ( #3525 )
...
This is an edge case that can occur with HTTP/2. Since multiple requests
use the same connection, it's possible for one request to restrict the
connection from creating new streams during a follow-up request.
https://github.com/square/okhttp/issues/3521
2017-08-31 16:09:14 -04:00
Yuri Schimke
314b40d9c5
Failed, second connection and call.enqueue EventListener tests ( #3562 )
...
* more tests
* cleanup
* review comments
* fix flaky test
2017-08-31 03:24:26 -04:00
Jesse Wilson
a73c217717
Fix IPv6 handling for cookies ( #3564 )
2017-08-30 22:03:34 -04:00
Jesse Wilson
e5f50b5bc6
Fix MockWebServer handling of 'Expect: 100 Continue' ( #3563 )
...
Previously we'd skip the request body unless the socket policy was
EXPECT_CONTINUE.
Closes: https://github.com/square/okhttp/issues/3498
2017-08-30 22:03:09 -04:00
Jesse Wilson
207f5579d3
Omit the message from MockWebServer's HTTP/2 :status header ( #3556 )
...
This was a bug carried over from SPDY.
Closes: https://github.com/square/okhttp/issues/3484
2017-08-30 18:25:44 -04:00
Jesse Wilson
ee5cf50288
Update some comments to point at current RFCs ( #3561 )
...
https://github.com/square/okhttp/issues/930
2017-08-30 15:10:51 -04:00
Jesse Wilson
57891fe021
Crash early if any interceptor is null. ( #3555 )
...
Closes: https://github.com/square/okhttp/issues/3514
2017-08-30 15:00:06 -04:00
Jesse Wilson
36bd68aa3e
New API, Chain.call() returns the in-flight call. ( #3557 )
...
Interceptors could use this to detect if the call has been canceled, or
cancel the call, or do other things.
2017-08-30 14:05:13 -04:00
Jesse Wilson
16f43b6439
Don't log a protocol when it is unknown. ( #3558 )
...
Closes: https://github.com/square/okhttp/issues/3395
2017-08-30 14:04:53 -04:00
Jared Burrows
1801d0cb2c
update proguard rules on README.md ( #3559 )
2017-08-30 14:04:34 -04:00
Stuart Neivandt
c77023cd03
Test Failure in MockWebServerTest ( #3547 )
...
* Lookup the FQDN given the MockWebServer hostname to compare with the HttpUrl hostname. Issue #3546 .
* Update MockWebServer to use the FQDN for its host name. Issue #3546 .
2017-08-30 10:22:58 -04:00
Jesse Wilson
9b0d19f913
Don't call callEnd until after the responseBody is done ( #3551 )
2017-08-30 06:14:21 +01:00
Jesse Wilson
c254a9a6bf
Don't fire events for Web Sockets. ( #3552 )
...
We probably want to support this, but at the moment it isn't yet
tested. Turn it off until we get something we really like.
2017-08-30 06:13:19 +01:00
Jesse Wilson
1c98464839
Move all failures into connectFailed and callFailed. ( #3550 )
...
I think applications might be simple by tracking successful events
separately from failure events.
2017-08-29 16:14:32 -04:00
Yuri Schimke
cdc48ba8b0
IOException instead of Throwable in EventListener API ( #3543 )
2017-08-28 12:35:03 -04:00