Carl Lerche
5c0efcf8c4
Ref count stream state and release when final ( #73 )
...
Previously, stream state was never released so that long-lived connections
leaked memory.
Now, stream states are reference-counted and freed from the stream slab
when complete. Locally reset streams are retained so that received frames
may be ignored.
2017-09-10 16:01:19 -07:00
Carl Lerche
cd76aca6d4
Add test infrastructure to work directly with frames ( #56 )
...
This adds a `Codec` based testing API. This is a bit less annoying than writing
at the raw H2 wire protocol level...
2017-09-06 14:18:37 -07:00
Carl Lerche
c2e6eb35d8
Track HTTP crate
2017-09-05 10:21:31 -07:00
Carl Lerche
88d1de2da0
Expose Codec via an unstable flag ( #49 )
...
Exposes `Codec` using an unstable flag. This is useful for testing.
2017-09-03 16:17:05 -07:00
Carl Lerche
c0433e8831
Fix tests & bug introduced in previous commit
2017-08-24 16:48:01 -07:00
Carl Lerche
807d2b7317
Wire in recv flow control ( #26 )
2017-08-23 11:22:24 -07:00
Carl Lerche
a623ab68b5
New send flow control ( #25 )
...
Restructure send flow control such that sending data is always accepted by `Stream`. Data frames will be buffered until there is available window to send them. Producers can monitor the available window capacity to decide if data should be produced.
2017-08-21 13:52:58 -07:00
Carl Lerche
441a8416c6
Handle the remote returning a protocol error
2017-08-07 22:35:29 -07:00
Carl Lerche
71da8d121f
Start hooking up sending data
2017-08-07 21:01:15 -07:00
Carl Lerche
6053ee059d
Get receiving data working
2017-08-07 12:48:50 -07:00
Carl Lerche
d918215397
Fix test
2017-08-04 22:19:42 -07:00
Carl Lerche
90df6e3879
Try to clean up test
2017-08-04 20:54:49 -07:00
Carl Lerche
650b40fc90
Zomg something works
2017-08-04 17:29:37 -07:00
Carl Lerche
1c55ad75ea
More code
2017-08-04 17:25:39 -07:00
Carl Lerche
33bdc057d6
Restructure proto
...
The existing code has been moved out and is being copied back piece / by
piece while restructuring the code to (hopefully) be more manageable.
2017-08-02 09:42:10 -07:00
Carl Lerche
0f13836504
More test cleanup
2017-07-26 13:08:00 -07:00
Carl Lerche
5dbeb0703b
Start breaking out test files
2017-07-26 12:03:35 -07:00