Jake Wharton
a9a1f736b1
Correct comment.
2015-01-02 12:30:33 -08:00
Jake Wharton
d491937012
Merge pull request #1268 from square/jwilson_0102_name_threads
...
Always include OkHttp in thread names.
2015-01-02 10:53:19 -08:00
Jesse Wilson
7049b29fd5
Always include OkHttp in thread names.
2015-01-02 13:46:55 -05:00
Jesse Wilson
afbcd97982
Merge pull request #1260 from square/jw/websocket-call
...
Add a web socket call concept for connecting.
2015-01-01 12:55:48 -05:00
Jake Wharton
9631227619
Add a web socket call concept for connecting.
...
Similar to HTTP and Call, the WebSocketCall is a representation of a pending HTTP request and subsequent upgrade to speak web sockets. Upon synchronous execution you are handed a WebSocket instance for synchronous writing and also pass in a WebSocketListener for async callbacks due to reading.
The API changes in this commits also generalize WebSocket such that it's agnostic to being a client or server peer.
2014-12-31 23:13:07 -08:00
Jesse Wilson
7756c4e4fe
Merge pull request #1264 from square/jw/kill-two-allocations
...
Skip buffer allocation when not needed.
2014-12-31 15:08:41 -05:00
Jake Wharton
31ec212f84
Skip buffer allocation when not needed.
2014-12-31 10:22:40 -08:00
Jesse Wilson
5527a1764d
We now fall back to TLS 1.0.
2014-12-31 12:48:23 -05:00
Jesse Wilson
2ca6dfd055
Merge pull request #1263 from ChristianBecker/patch-1
...
Update CHANGELOG.md
2014-12-31 10:42:47 -05:00
Christian Becker
6909923b89
Update CHANGELOG.md
2014-12-31 16:19:12 +01:00
Jesse Wilson
bfa25f05bd
Merge pull request #1262 from square/jw/unused
...
Remove unused method.
2014-12-31 09:03:21 -05:00
Jake Wharton
ec57220165
Remove unused method.
2014-12-30 22:21:57 -08:00
Jesse Wilson
1d86439e90
[maven-release-plugin] prepare for next development iteration
2014-12-30 21:52:35 -05:00
Jesse Wilson
6aef5ab3c5
[maven-release-plugin] prepare release parent-2.2.0
parent-2.2.0
2014-12-30 21:52:33 -05:00
Jesse Wilson
487c7545b6
Bump Okio dependency to 1.2.0.
2014-12-30 21:46:57 -05:00
Jesse Wilson
8b61d49c3c
2.2.0 changelog.
2014-12-30 21:37:27 -05:00
Jake Wharton
8f3cae8cda
Merge pull request #1259 from square/jwilson_1230_fail
...
New API to disable retry for an OkHttpClient.
2014-12-30 17:42:27 -08:00
Jesse Wilson
786e3b3048
New API to disable retry for an OkHttpClient.
...
Most applications won't want to disable retry globally. Instead, use
clone() to get an OkHttpClient for a specific, non-idempotent request,
then configure that client with the setting.
Closes https://github.com/square/okhttp/issues/1043
2014-12-30 20:31:32 -05:00
Jesse Wilson
24750b59c4
Merge pull request #1256 from square/jwilson_1230_followup
...
Limit 20 authorization attempts.
2014-12-30 17:18:44 -05:00
Jesse Wilson
e49dd7a2f0
Limit 20 authorization attempts.
...
We use one count for both redirects and authorization attempts. This
seems like good enough policy.
Closes https://github.com/square/okhttp/issues/960
2014-12-30 12:14:49 -05:00
Jesse Wilson
95bed2b427
Merge pull request #1257 from square/jwilson_1230_timeouts
...
Don't recover from timeouts.
2014-12-30 12:07:59 -05:00
Jesse Wilson
dcbb199247
Don't recover from timeouts.
...
Closes https://github.com/square/okhttp/issues/1146
2014-12-30 10:37:09 -05:00
Jesse Wilson
b6a8da414b
Merge pull request #1254 from square/jwilson_1229_opt_into_caching
...
Cache 302s and 308s with the right response headers.
2014-12-29 19:29:29 -05:00
Jesse Wilson
1d6f0e75d5
Cache 302s and 308s with the right response headers.
...
Closes https://github.com/square/okhttp/issues/1158
2014-12-29 18:47:36 -05:00
Jesse Wilson
64f2af812b
Merge pull request #1252 from square/jwilson_1229_iterate_http_cache
...
New APIs to iterate the response cache.
2014-12-29 18:40:52 -05:00
Jesse Wilson
a409634d36
New APIs to iterate the response cache.
...
Closes https://github.com/square/okhttp/issues/853
2014-12-29 17:19:41 -05:00
Jake Wharton
36be8ff2ea
Merge pull request #1251 from square/jwilson_1229_setReuseAddress
...
Don't reuse ephemeral port numbers.
2014-12-29 11:33:08 -08:00
Jesse Wilson
452b3190b2
Merge pull request #1250 from square/jwilson_1229_cache_iterator
...
New API for iterating DiskLruCache contents.
2014-12-29 14:30:26 -05:00
Jesse Wilson
c6503d2604
Don't reuse ephemeral port numbers.
...
MockWebServer was reusing port numbers, and this was causing tests
to be flaky in some situations.
2014-12-29 14:25:23 -05:00
Jesse Wilson
755bd91f75
New API for iterating DiskLruCache contents.
...
For https://github.com/square/okhttp/issues/853
2014-12-29 14:24:09 -05:00
Jake Wharton
a41ac50bbf
Merge pull request #1249 from square/jwilson_1228_evict
...
Respect the max idle connections limit.
2014-12-29 09:56:09 -08:00
Jesse Wilson
98c74ace40
Respect the max idle connections limit.
...
The structure here is a bit ugly. But it permits a single 'synchronized'
block, which makes the method easier to reason about.
Closes https://github.com/square/okhttp/issues/1239
2014-12-29 10:10:00 -05:00
Jesse Wilson
f1a27df8f9
Merge pull request #1248 from square/jwilson_1227_socks
...
Support SOCKS proxies.
2014-12-28 12:07:33 -05:00
Jesse Wilson
39971631fe
Support SOCKS proxies.
...
The trickiest part of this change is the SOCKS 5 proxy implemented
to make testing possible. Fortunately the protocol is very easy, and
shows off Okio.
Closes https://github.com/square/okhttp/issues/1009
2014-12-28 12:07:21 -05:00
Jesse Wilson
29ec4f3e8d
Merge pull request #1247 from square/jwilson_1227_proxyselector
...
Fix pooling with proxy selectors.
2014-12-27 20:06:15 -05:00
Jesse Wilson
0de100dc1e
Fix pooling with proxy selectors.
...
Previously two OkHttpClients that shared a connection pool but
used different proxy selectors could incorrectly share the
pooled addresses.
Closes https://github.com/square/okhttp/issues/1149
2014-12-27 20:05:59 -05:00
Jesse Wilson
88aad09806
Merge pull request #1244 from square/jwilson_1227_fix_alpn_leak
...
Always call ALPN.remove() after handshake.
2014-12-27 14:51:59 -05:00
Jake Wharton
0dcf5d9586
Merge pull request #1246 from square/jwilson_1227_update_alpn
...
Update ALPN.
2014-12-27 11:44:55 -08:00
Jesse Wilson
5f86973912
Always call ALPN.remove() after handshake.
2014-12-27 14:35:49 -05:00
Jesse Wilson
03bb6befe2
Update ALPN.
...
This may fix flakiness in CallTest.matchingPinnedCertificate
2014-12-27 14:33:51 -05:00
Jake Wharton
284601bb24
Merge pull request #1245 from square/jwilson_1227_use_rule
...
Use MockWebServerRule in more tests.
2014-12-27 10:51:18 -08:00
Jesse Wilson
785d9e9438
Use MockWebServerRule in more tests.
...
Also fix a bug in MockWebServer where calls to shutdown()
raced with calls to play() would throw a NullPointerException.
Also improve logging in MockWebServer.
2014-12-27 13:05:36 -05:00
Jesse Wilson
050eb79163
Merge pull request #1243 from square/nfuller_ChangeAlpnNpnSupport
...
Nfuller change alpn npn support
2014-12-26 18:13:28 -05:00
Jesse Wilson
955934836f
Merge remote-tracking branch 'nfuller/ChangeAlpnNpnSupport' into nfuller_ChangeAlpnNpnSupport
...
* nfuller/ChangeAlpnNpnSupport:
Remove NPN support from OkHttp
Conflicts:
okhttp/src/main/java/com/squareup/okhttp/Protocol.java
pom.xml
2014-12-26 18:12:57 -05:00
Jake Wharton
58baa85208
Merge pull request #1236 from square/jwilson_1225_response_body
...
Source-incompatible: RequestBody.contentLength() throws IOException
2014-12-26 03:09:53 -08:00
Jesse Wilson
8cf76d019a
Merge pull request #1238 from square/nfuller_FixPoolLeak
...
Nfuller fix pool leak
2014-12-26 01:21:10 -05:00
Jesse Wilson
8c7c963c24
Fix some checkstyle issues in nfuller's ConnectionPool fix.
2014-12-26 01:20:26 -05:00
Jesse Wilson
0d8704e252
Merge remote-tracking branch 'nfuller/FixPoolLeak' into nfuller_FixPoolLeak
...
* nfuller/FixPoolLeak:
Fix for a socket leak in OkHttp on Android
Conflicts:
okhttp-tests/src/test/java/com/squareup/okhttp/ConnectionPoolTest.java
okhttp/src/main/java/com/squareup/okhttp/ConnectionPool.java
2014-12-26 01:15:51 -05:00
Jesse Wilson
9f5951b311
Merge pull request #1225 from square/jw/roundabout-kill
...
Increase determinism in DiskLruCache tests.
2014-12-26 00:45:39 -05:00
Jesse Wilson
0a4e510a94
Source-incompatible: RequestBody.contentLength() throws IOException
...
This is a binary-compatible change, but code that currently calls
RequestBody.contentLength() doesn't necessarily catch or declare
IOException, and will need to with this change.
MultipartBuilder is most impacted by this change; previously the
length was computed eagerly; now it's not computed at all.
Applications that require the previous behavior should fully
buffer the request bodies and use that to compute the length.
Closes https://github.com/square/okhttp/issues/1141
2014-12-25 23:44:05 -05:00