Jake Wharton
f6617dd103
Migrate types to 'internal' package.
...
This will allow us to bake the implementation and API on master with normal development of the library.
2014-11-04 23:42:51 -08:00
Jake Wharton
23602a8546
Allow 'http' and 'https' URLs for convenience.
2014-11-04 23:35:26 -08:00
Jake Wharton
a5535bd913
Use a singleton list which is slightly more efficient.
2014-11-04 23:32:48 -08:00
Jake Wharton
c0c73046bb
Use empty string for absense close reason.
2014-11-04 23:30:10 -08:00
Jake Wharton
b72c9567df
Hook up the web socket reader and writer together.
...
Add a simple real-world recipe which talks to an echo server.
2014-11-04 23:29:57 -08:00
Jake Wharton
9eb307e586
Implement message writer.
2014-11-04 23:25:09 -08:00
Jake Wharton
424bd58b21
Implement message reader.
...
Currently the reader skips control frames.
2014-11-04 23:21:01 -08:00
Jesse Wilson
ec1b266f1d
[maven-release-plugin] prepare for next development iteration
2014-11-05 02:12:03 -05:00
Jesse Wilson
7b6771bb29
[maven-release-plugin] prepare release parent-2.1.0-RC1
parent-2.1.0-RC1
2014-11-05 02:12:01 -05:00
Jake Wharton
6648193cbd
Initial web socket API.
2014-11-04 23:09:08 -08:00
Jesse Wilson
027618dfdc
Exclude the hpacktests submodule.
2014-11-05 02:06:50 -05:00
Jesse Wilson
a4a79586d8
Permit release candidates in version numbers.
2014-11-05 00:30:05 -05:00
Jesse Wilson
0316426ecf
Bump pom versions to 2.1.0-SNAPSHOT.
2014-11-05 00:21:52 -05:00
Jake Wharton
26191725ad
Merge pull request #1128 from square/jwilson_1104_connectionspec
...
Rename ConnectionConfiguration to ConnectionSpec.
2014-11-04 20:57:40 -08:00
Jesse Wilson
d8eb48aa55
Rename ConnectionConfiguration to ConnectionSpec.
2014-11-04 22:21:13 -05:00
Jesse Wilson
c4aebcd028
Merge pull request #1127 from square/jwilson_1104_apis
...
Adjust new 2.1 APIs.
2014-11-04 21:21:42 -05:00
Jesse Wilson
187588cd42
Update the changelog for 2.1.0-RC1
2014-11-04 21:21:01 -05:00
Jesse Wilson
92b6f571d7
Adjust new 2.1 APIs.
...
ConnectionConfiguration was missing a Builder. We had slightly
misleading docs in OkHttpClient.setFollowRedirects().
All the other new docs look pretty reasonable.
2014-11-04 20:24:07 -05:00
Jake Wharton
cd56d89e64
Merge pull request #1124 from square/jwilson_1104_evictall
...
Implement DiskLruCache.evictAll and expose it in Cache.
2014-11-04 09:42:45 -08:00
Jesse Wilson
1962206a01
Implement DiskLruCache.evictAll and expose it in Cache.
...
Closes https://github.com/square/okhttp/issues/257
2014-11-04 10:03:56 -05:00
Jake Wharton
e3bdda06ca
Merge pull request #1123 from square/jwilson_1103_import_disklrucache_tests
...
Import DiskLruCache tests.
2014-11-03 21:08:23 -08:00
Jesse Wilson
767051119d
Import DiskLruCache tests.
...
See https://github.com/JakeWharton/DiskLruCache/blob/master/src/test/java/com/jakewharton/disklrucache/DiskLruCacheTest.java
2014-11-03 23:44:24 -05:00
Adrian Cole
41907c5494
Merge pull request #1120 from square/jwilson_1103_settings_tpyo
...
Fix a typo in settings documentation.
2014-11-03 18:58:44 -08:00
Adrian Cole
5dcc4fb76c
Merge pull request #1122 from square/jwilson_1103_use_copy
...
Fix a concurrency bug in SPDY settings.
2014-11-03 18:57:04 -08:00
Jake Wharton
d36079a939
Merge pull request #1121 from square/jwilson_1103_routeselector
...
Be consistent about host names in RouteSelector.
2014-11-03 18:38:08 -08:00
Jesse Wilson
3820b5c335
Fix a concurrency bug in SPDY settings.
...
We were making a copy of the streams HashMap so that we could
iterate it safely after releasing our lock. But we weren't
actually using that copy when iterating. Whoops!
Fixes https://github.com/square/okhttp/issues/1119
2014-11-03 21:30:47 -05:00
Narayan Kamath
c3bc8e25c8
Be consistent about host names in RouteSelector.
...
Use the host specified by the address, and not URI.getHost().
bug: 18023709
Change-Id: I2c39c2ce89049130dc00047c8de6f214159144c0
2014-11-03 21:22:45 -05:00
Jesse Wilson
5f1ab03cd5
Fix a typo in settings documentation.
...
Closes https://github.com/square/okhttp/issues/1105
2014-11-03 20:46:25 -05:00
Adrian Cole
912d09e7da
Merge pull request #1117 from square/jwilson_1102_cancel
...
Don't skip the callback if a call is canceled.
2014-11-02 10:06:49 -08:00
Jesse Wilson
5991ab1ecb
Don't skip the callback if a call is canceled.
2014-11-02 12:48:25 -05:00
Jesse Wilson
108fd5ce51
Merge pull request #1115 from square/jwilson_1102_mws_reliability
...
Attempt to improve MockWebServer reliability.
2014-11-02 11:31:52 -05:00
Jesse Wilson
12f858caac
Attempt to improve MockWebServer reliability.
...
Use the same InetAddress when binding to a port as when offering the
MockWebServer's address.
Wait for the executors to all shutdown before returning from shutdown().
2014-11-02 11:27:14 -05:00
Adrian Cole
ee56def68e
Merge pull request #1116 from square/jwilson_1102_peer_close
...
Don't close the SPDY peer too early.
2014-11-02 08:24:05 -08:00
Jesse Wilson
b1091b3f55
Don't close the SPDY peer too early.
...
This was occasionally causing tests to fail because the test was
observing the connection close.
2014-11-02 10:52:52 -05:00
Jesse Wilson
6e7f14715a
Merge pull request #1113 from square/jwilson_1101_not_shared
...
Change the cache to have non-shared semantics.
2014-11-01 11:58:35 -04:00
Jesse Wilson
112f020c41
Change the cache to have non-shared semantics.
...
This means we'll cache responses that use an 'Authorization' header. This
means OkHttp's cache shouldn't be used on middleboxes that sit between
user agents and the origin server; in practice this is never a use case
for OkHttp.
Fixes https://github.com/square/okhttp/issues/1035
2014-11-01 11:53:13 -04:00
Adrian Cole
20929e3f07
Merge pull request #1112 from square/jwilson_1101_cachepolicy
...
Fix request cache-control to match spec.
2014-11-01 08:38:44 -07:00
Jesse Wilson
ddac0083db
Fix request cache-control to match spec.
...
Fixes https://github.com/square/okhttp/issues/1081
2014-11-01 11:07:12 -04:00
Jesse Wilson
a4c0d59ad5
Merge pull request #1102 from square/jwilson_1025_fix_cache_bug
...
Fix a bug where the response cache could be corrupted.
2014-10-27 14:17:49 -04:00
Jesse Wilson
f80b1f3a4a
Fix a bug where the response cache could be corrupted.
...
When streaming a response, we copy data from our buffer to the cached file
on disk. Unfortunately we were copying N bytes from the front of the buffer
when we wanted N bytes from the back of the buffer.
Typically these are the same, but certain access patterns can cause them
to be different, corrpting the cached file on disk.
This was uncovered by migrating the cache tests from operating on
HttpURLConnection's API to our new API.
2014-10-27 11:00:01 -04:00
Jake Wharton
59b11fbabf
Merge pull request #1106 from square/jwilson_1026_fix_concurrency
...
Don't hold the connection lock when calling receiveRstStream.
2014-10-26 13:24:20 -07:00
Jake Wharton
c079c9e985
Merge pull request #1107 from square/jwilson_1026_one_logger
...
Use one logger for all logging.
2014-10-26 13:14:13 -07:00
Jesse Wilson
40c2e6aec0
Use one logger for all logging.
...
There was a concurrency problem in CallTest where multiple calls to
Logger.getLogger() didn't return the same instance, leading to failures
in the test.
2014-10-26 11:48:53 -04:00
Jesse Wilson
8f1bc30cd1
Don't hold the connection lock when calling receiveRstStream.
...
Closes https://github.com/square/okhttp/issues/938
2014-10-26 10:28:45 -04:00
Jake Wharton
125df557fb
Merge pull request #1104 from square/jwilson_1025_isCanceled
...
Add an accessor, Call.isCanceled().
2014-10-25 19:56:07 -07:00
Jesse Wilson
9cc7a5219f
Add an accessor, Call.isCanceled().
...
Closes https://github.com/square/okhttp/issues/912
2014-10-25 22:50:10 -04:00
Jake Wharton
518b3fd0dc
Merge pull request #1103 from square/jwilson_1025_log_failures
...
Log uncaught IOExceptions instead of rethrowing them.
2014-10-25 16:02:41 -07:00
Jesse Wilson
36cff8b864
Log uncaught IOExceptions instead of rethrowing them.
...
The application layer can handle these with a try/catch block in their
onResponse method if desired.
This prevents a crash for applications that haven't deliberately configured
their uncaught exception handlers.
Closes https://github.com/square/okhttp/issues/1049
2014-10-25 18:34:49 -04:00
Adrian Cole
c9cc836569
Merge pull request #1100 from square/jwilson_1023_rebuild
...
Don't append to a truncated line in the journal.
2014-10-24 08:02:41 -07:00
Jesse Wilson
8d4230b78d
Don't append to a truncated line in the journal.
...
Fixes https://github.com/square/okhttp/issues/1099
2014-10-23 23:39:42 -04:00