Commit Graph

600 Commits

Author SHA1 Message Date
Carl Lerche
cb5130e3c6 Start working on server 2017-06-30 14:36:13 -07:00
Oliver Gould
7f21954724 Implement ping_pong (#1)
* comments

* wip

* wip

* Sketch out pingpong and keepalive stack modules

PingPong responds to ping requests with acknowledgements.
KeepAlive issues ping requests on idle connections.

* remove keepalive for now

* commentary

* prettify ping_pong's poll

* test ping pong and passthrough

* add buffering test

* Use a fixed-size slice for ping payloads

* Improve pong dispatch

pong messages should be buffered until Stream::poll returns
Async::NotReady or Async::Ready(None) (i.e. such that it is not expected
to be polled again).  pong messages are now dispatched when no more data
may be polled or the Sink half is activated.

* revert name change

* touchup

* wip

* Simplify Stream::poll

Now PingPong only holds at most one pending pong and the stream will not
produce additional frames unti the ping has been sent.

Furthermore, we shouldn't have to call inner.poll_complete quite so
frequently.

* avoid Bytes::split_to

* only use buf internally to Ping::load
2017-06-30 13:58:14 -07:00
Carl Lerche
a7b92d5ec2 Restructure hpack tests 2017-06-29 23:11:35 -07:00
Carl Lerche
63ffea61f5 Start writing tests 2017-06-29 20:59:21 -07:00
Carl Lerche
0564747121 Tweaks 2017-06-29 20:41:46 -07:00
Carl Lerche
076bf204e7 Point io-dump to the github repo 2017-06-29 10:11:26 -07:00
Carl Lerche
1842cb5dfc Use latest tokio-timer 2017-06-27 13:31:46 -07:00
Carl Lerche
8e16e22172 question... 2017-06-27 12:49:27 -07:00
Carl Lerche
fee43a09c8 Fix warnings 2017-06-27 12:23:57 -07:00
Carl Lerche
79aa11ad32 Shuffle types around 2017-06-27 11:04:36 -07:00
Carl Lerche
1f85d54cff Process response 2017-06-27 01:34:37 -07:00
Carl Lerche
7897b770e9 Get a request sent 2017-06-26 22:25:25 -07:00
Carl Lerche
ac2959e956 Get settings handshake working + other junk 2017-06-23 15:51:00 -07:00
Carl Lerche
fa21970656 Much work 2017-06-23 13:13:50 -07:00
Carl Lerche
a3950354aa Header frame decoding 2017-06-20 09:16:21 -07:00
Carl Lerche
29951da962 FramedWrite 2017-06-19 13:34:08 -07:00
Carl Lerche
327ca79550 More header encoding work 2017-06-19 11:53:03 -07:00
Carl Lerche
b4c3161d74 A bunch of work 2017-06-16 21:45:44 -07:00
Carl Lerche
f6fd6a6d6e Bunch of work 2017-06-16 16:37:51 -07:00
Carl Lerche
c12a9a86ae Don't allocate on each call to huffman decode 2017-06-13 14:39:39 -07:00
Carl Lerche
ab8eac6c05 Remove extra debug_assert 2017-06-13 13:55:05 -07:00
Carl Lerche
c7de880f6c More bug fixes 2017-06-13 13:46:45 -07:00
Carl Lerche
ef495d55dc More HPACK bug fixes 2017-06-12 10:39:40 -07:00
Carl Lerche
58ea9ada0f More bug fixes 2017-06-11 13:53:23 -07:00
Carl Lerche
73de7918de Remove commented out code 2017-06-09 12:07:56 -07:00
Carl Lerche
fa53d9556b Fuzz HPACK 2017-06-09 12:06:38 -07:00
Carl Lerche
42f19f3006 Get encoder & decoder working 2017-06-07 21:54:04 -07:00
Carl Lerche
7ffc574da8 Add another encoder test 2017-06-06 14:57:51 -07:00
Carl Lerche
a9e900a5e2 More HPACK encoder changes 2017-06-06 14:51:03 -07:00
Carl Lerche
5c30ef30ec More HPACK encoding work 2017-06-05 15:03:04 -07:00
Carl Lerche
a7da819e45 More encoding work 2017-06-02 14:33:09 -07:00
Carl Lerche
2f8095e71a WIP 2017-06-02 12:41:39 -07:00
Carl Lerche
e41349572a Add huffman encoding 2017-06-01 12:35:20 -07:00
Carl Lerche
d3e4e036e3 Add HPACK test cases 2017-05-31 14:44:58 -07:00
Carl Lerche
f45a4b4cd7 Get HPACK decoder working 2017-05-31 14:44:38 -07:00
Carl Lerche
b9da06a576 More work on HPACK decoding 2017-05-30 21:56:50 -07:00
Carl Lerche
3c850c2a34 Finish hpack decoding 2017-05-30 15:41:31 -07:00
Carl Lerche
eb00f71caf More hpack work 2017-03-15 17:16:00 -07:00
Carl Lerche
1deac1f16e Huffman 2017-03-13 15:13:44 -07:00
Carl Lerche
73706494ef Work on huffman decoding 2017-03-13 14:00:22 -07:00
Carl Lerche
490ae8c05d work 2017-03-12 22:33:45 -07:00
Carl Lerche
fb09a0e12c work 2017-03-12 14:14:03 -07:00
Carl Lerche
59bc8a9a7e work 2017-03-12 13:44:38 -07:00
Carl Lerche
db5e94039c More hackin 2017-03-11 13:19:28 -08:00
Carl Lerche
769f3f142f More work 2017-03-11 12:59:15 -08:00
Carl Lerche
f19f039bbc WIP 2017-03-10 18:38:06 -08:00
Carl Lerche
0e35254bd8 WIP 2017-03-10 15:14:55 -08:00
Carl Lerche
841796f59a More work 2017-03-10 13:53:44 -08:00
Carl Lerche
e2871d92fa Work 2017-03-10 13:02:04 -08:00
Carl Lerche
1fe3a57338 Initial commit 2017-03-09 20:02:47 -08:00