1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-24 04:02:07 +03:00
Commit Graph

746 Commits

Author SHA1 Message Date
jwilson
25cb503a41 Adapters for sources and sinks. 2014-01-28 22:56:24 -05:00
Jesse Wilson
99a8dae943 Merge pull request #492 from square/jwilson_0127_indexof
More buffer stuff: deadlines, indexOf and read.
2014-01-27 20:00:24 -08:00
jwilson
bcacc38f7d More buffer stuff: deadlines, indexOf and read.
Rename Timeout to Deadline. I'm still unsatisfied with this API,
but at least the new name is accurate.

Implement indexOf as a linear scan and read by delegating to
write.
2014-01-27 21:38:55 -05:00
Adrian Cole
c30a661bf0 Merge pull request #489 from adriancole/spdy-3.1
Update to spdy/3.1 and ignore old spdy frames.
2014-01-27 14:22:23 -08:00
Adrian Cole
d152445db7 Update to spdy/3.1 and ignore old spdy frames. 2014-01-27 14:06:17 -08:00
Adrian Cole
0feedd1e65 Merge pull request #490 from adriancole/close-test-peers
Use latest junit maven config and close test resources
2014-01-27 14:05:01 -08:00
Adrian Cole
b77e76c736 Test de-flakiness attempt
Update surefire to latest and set travis to emit maven version.

Only use one MockSpdyPeer in SpdyConnectionTest and close its executor.

Consistency in HttpURLConnection tests.

Bump so and read timeouts in ConnectionPoolTest.
2014-01-27 13:52:58 -08:00
Jesse Wilson
236b631fba Merge pull request #488 from jgilfelt/patch-1
Fix mockwebserver jar download 404
2014-01-27 06:27:45 -08:00
Jesse Wilson
7bf48539c1 Merge pull request #486 from adriancole/window-update
Send window update after the peer sends half the limit on a stream or connection
2014-01-27 06:27:21 -08:00
Jeff Gilfelt
35b031fb63 Fix mockwebserver jar download 404 2014-01-27 10:41:27 +00:00
Adrian Cole
358169b89f Send window update after the peer sends half the limit on a stream or connection. 2014-01-26 21:54:25 -08:00
Jesse Wilson
d4e80bcc06 Merge pull request #487 from square/jwilson_0126_buffer_to_buffer
Implement moving bytes between OkBuffers.
2014-01-26 21:49:04 -08:00
jwilson
5fe67f1bfc Implement moving bytes between OkBuffers.
This is more complicated than I'd anticipated.
2014-01-27 00:47:21 -05:00
Jesse Wilson
e33ee39e41 Merge pull request #485 from square/okbuffer
OkBuffer API sketch.
2014-01-26 16:07:35 -08:00
jwilson
32a2b1d8d0 OkBuffer API sketch.
I'm unhappy with java.io:
 * No timeouts.
 * Every layer needs to copy bytes around. Always copying bytes.
 * Features like mark/reset and available() are clumsy.
 * Its awkard in mixed text/binary protocols like HTTP because
   character decoding is separate and takes over the stream.

Unfortunately java.nio isn't better, just different:
 * It's complex.
 * Buffers are fixed size.
 * No built-in buffer pooling.
 * Features like mark/reset/position are clumsy.

This is an obnoxious attempt at a 3rd I/O interface, mostly
inspired by InputStream and OutputStream, but using growable
buffers instead of byte arrays as the core data container.
2014-01-26 18:09:56 -05:00
Adrian Cole
3cf454698b Merge pull request #484 from adriancole/stream-window-update
spdy streams honor write window updates
2014-01-26 14:02:55 -08:00
Adrian Cole
d990b5819c spdy streams honor write window updates. 2014-01-26 14:01:36 -08:00
Adrian Cole
8a79b6cdcc Merge pull request #483 from adriancole/connection-settings-changes-write-window
Honor change in initial write window from peer settings.
2014-01-26 12:21:28 -08:00
Adrian Cole
d4508141fc Honor change in connection-level initial write window from peer settings. 2014-01-26 11:48:15 -08:00
Adrian Cole
b9b5c8462d Merge pull request #482 from square/jwilson_0126_flow_control_writes
Honor connection-level flow control for writes.
2014-01-26 09:36:54 -08:00
jwilson
2207d16d45 Honor connection-level flow control for writes.
We don't write until the peer has given us a budget.
2014-01-26 09:37:05 -05:00
Jesse Wilson
a26ddbb76c Style fixes 2014-01-25 18:02:26 -05:00
Jesse Wilson
69cabb714e Improve some Markdown 2014-01-25 11:44:14 -05:00
Jesse Wilson
93e079b936 Create concurrency doc. 2014-01-25 11:40:17 -05:00
Adrian Cole
4221e27007 Merge pull request #480 from adriancole/backfill-tests
Backfill spdy and http/2 related tests wrt zero-length messages.
2014-01-24 12:09:45 -08:00
Adrian Cole
241814257b Backfill spdy and http/2 related tests wrt zero-length messages. 2014-01-24 17:43:56 +01:00
Adrian Cole
43463c019c Merge pull request #478 from adriancole/harden-reads
cleanup frame handling in http/2
2014-01-23 13:05:27 -08:00
Adrian Cole
08a3845a59 Fixed bad length bugs in http/2 reader, ignore unknown frames, and cleaned up frame handling. 2014-01-23 21:54:31 +01:00
Adrian Cole
10fa81cf19 Merge pull request #479 from adriancole/hide-settings
Simplify settings and hide SPDY Variant construction
2014-01-23 12:05:53 -08:00
Adrian Cole
b2cff2e916 Simplify settings and hide SPDY Variant construction. 2014-01-23 19:25:47 +01:00
Jesse Wilson
76258cab6c Merge pull request #477 from adriancole/ids-and-fields
frame metadata field cleanup
2014-01-22 16:17:47 -08:00
Adrian Cole
154cbb4b9f convert http/2 params to natural primitive types. 2014-01-22 21:29:32 +01:00
Adrian Cole
abd0cb99ab Merge pull request #476 from adriancole/http2-goaway
Add HTTP/2 GOAWAY frame
2014-01-22 11:19:34 -08:00
Adrian Cole
28017b1506 Add GOAWAY support to http/2 and backfill tests. 2014-01-22 19:32:40 +01:00
Adrian Cole
471ed070e9 Remove FLAG_END_FLOW_CONTROL as it is no longer in http/2. Backfill test and implementation window update on http/2. 2014-01-22 08:23:55 +01:00
Adrian Cole
ac584820ea Merge pull request #472 from adriancole/backfill-data-test
Backfilled http/2 data frame test and clarified comments.
2014-01-21 21:25:08 -08:00
Jake Wharton
f18ede8f9c Merge pull request #474 from square/jwilson_0121_gzip
Don't unzip if there isn't a response body.
2014-01-21 19:51:46 -08:00
jwilson
97741e94fb Don't unzip if there isn't a response body.
https://github.com/square/okhttp/issues/358
2014-01-21 22:47:50 -05:00
Adrian Cole
ded437b77a Backfilled http/2 data frame test and clarified comments. 2014-01-21 22:43:31 +01:00
Adrian Cole
2014031429 Merge pull request #471 from adriancole/http2-ping
Enable ping for http/2
2014-01-21 11:47:34 -08:00
Adrian Cole
5dc83fd2b8 Enable ping for http/2 2014-01-21 19:59:05 +01:00
Adrian Cole
d4a02682bf Merge pull request #470 from adriancole/push-promise
Push promise
2014-01-21 08:45:54 -08:00
Adrian Cole
4a62aef3f8 Basic support for reading and writing http/2 push promise frames. 2014-01-21 17:43:41 +01:00
Adrian Cole
47c640a1a4 Merge pull request #469 from adriancole/header-continuation-fix
Fix header frame processing in http/2
2014-01-21 08:36:56 -08:00
Adrian Cole
f214cf9670 Framing of headers blocks happen after compression. 2014-01-21 17:27:22 +01:00
Adrian Cole
0c5b5454bc Read priority flag on http/2 headers frame. 2014-01-21 17:27:21 +01:00
Jesse Wilson
7260ffab9b Merge pull request #468 from adriancole/test-enable-push-flag
Correct and backfill tests for default http/2 push setting.
2014-01-20 20:53:02 -08:00
Adrian Cole
9110ef83bf Correct and backfill tests for default http/2 push setting. 2014-01-20 14:17:35 -08:00
Adrian Cole
e65221c543 Merge pull request #466 from adriancole/schedule-hpack-change
Clarify action taken when hpack reader applies new header table size.
2014-01-20 13:43:55 -08:00
Adrian Cole
4fa9814e30 Clarify action taken when hpack reader applies new header table size. 2014-01-20 12:52:48 -08:00