Cory Benfield
d17462f586
Fix example server.
...
Motivation:
The example server had slowly bitrotted over time: some minor fixes were
needed.
Modifications:
I fixed it!
Result:
The example server works against a basic curl command.
0.1.0
2018-05-18 17:53:21 +01:00
Cory Benfield
aee602c435
Add interface for creating channels from the client side. ( #6 )
...
Motivation:
While the HTTP2StreamMultiplexer could create channels in response to
inbound request streams on the server side, there was no interface for
creating channels locally.
That would make having a HTTP/2 client kinda tricky!
Modifications:
Added HTTP2StreamMultiplexer.createStreamChannel.
Result:
Possible to write HTTP/2 clients.
2018-05-18 17:26:12 +01:00
Cory Benfield
0a271b1cef
Remove handlers from stream channel pipelines on shutdown. ( #5 )
...
Motivation:
When closing a stream channel, it must remove its channel handlers.
Modifications:
Call ChannelCore.removeHandlers on shutdown.
Result:
Handlers are removed on channel shutdown.
2018-05-18 14:05:12 +01:00
Cory Benfield
c2d4a88b24
Flesh out HTTP2 to HTTP1 codecs. ( #4 )
...
Motivation:
Many users of HTTP/2 will not want to interact with the HTTP/2 protocol
directly, but instead to write generic HTTP applications on top of an
abstraction layer. These codecs provide part of that abstraction layer.
Modifications:
Added more codecs, fleshed them out, wrote many tests.
Result:
Easier application writing.
2018-05-18 11:35:26 +01:00
tomer doron
720bd5f2e5
add docker setup ( #3 )
...
motivation: add required files for ci setup
changes:
* add sanity script to test for oss headers and linux tests
* add docker and docker-compose files for docker based tests
2018-05-18 09:33:34 +01:00
Johannes Weiß
a318892778
remove copy of generate_linux_tests.rb ( #2 )
...
Motivation:
generate_linux_tests.rb is in the repo twice, no need for that.
Modifications:
Remove copy of generate_linux_tests.rb .
Result:
Less code.
2018-05-17 14:05:37 +01:00
Cory Benfield
dd18ad3498
More extensive readme
...
Motivation:
Users should know that the project is currently in a beta state: this
README makes that clear.
Modifications:
Amended the README.
Result:
More clarity
2018-05-17 13:32:51 +01:00
Cory Benfield
f80e119c8d
Add NIO commit template.
2018-05-17 13:11:32 +01:00
Cory Benfield
5d2c1ceb63
Add contributors file
2018-05-17 12:07:04 +01:00
Cory Benfield
5dfcef900e
Add linux test generation script
2018-05-17 12:04:13 +01:00
Cory Benfield
e2ea2b88b9
Support read()
2018-05-17 11:58:25 +01:00
Cory Benfield
bbcb593a6d
Support buffered writes
2018-05-16 17:53:26 +01:00
Cory Benfield
5c5987e6ad
Manage delayed stream channel setup
2018-05-16 15:37:41 +01:00
Cory Benfield
87cfe4897f
Test stream-initiated closure.
2018-05-16 14:24:22 +01:00
Cory Benfield
861efdcd75
Remove closed channels from the map
2018-05-16 11:28:49 +01:00
Cory Benfield
d6934cebd6
Remove tests for unexpected behaviour
2018-05-16 10:02:33 +01:00
Cory Benfield
dfdf96e234
Basic ordering test
2018-05-15 18:10:09 +01:00
Cory Benfield
59611cd174
Initial multiplexer testing
2018-05-15 17:36:43 +01:00
Cory Benfield
4acc76bfd7
Fire user events when streams are closed
2018-05-14 17:57:10 +01:00
Cory Benfield
c7671bc982
Suppress PRIORITY frames
2018-05-14 15:35:09 +01:00
Cory Benfield
c10d486378
Resolve newly-failing tests
2018-05-14 15:08:10 +01:00
Cory Benfield
986922e01f
Minor fixes
2018-05-14 14:52:28 +01:00
Cory Benfield
e5d470daf6
Allow sending trailers
2018-05-14 13:39:15 +01:00
Cory Benfield
91349458ff
Don't attach data for informational responses
2018-05-14 13:24:53 +01:00
Cory Benfield
a5854839c7
Refactor state tracking for streams
2018-05-14 12:53:58 +01:00
Cory Benfield
b7813bf908
Add hooks to data provider for trailers
2018-05-11 14:17:57 +01:00
Cory Benfield
e7d9384637
Add tests for 1XX and trailers
2018-05-11 14:17:36 +01:00
Cory Benfield
105c47ea9d
Cancel writes on GOAWAY
2018-05-11 10:57:32 +01:00
Cory Benfield
493ba60314
CustomDebugStringConvertible for HTTP2StreamID
2018-05-11 10:56:34 +01:00
Cory Benfield
95b557d617
Fail writes when stream closed by rststream
2018-05-11 10:04:32 +01:00
Cory Benfield
7aa92fe7e2
Refactor error code to struct instead of enum
2018-05-10 17:35:46 +01:00
Cory Benfield
9b80e7202f
Quick test for partial frames
2018-05-09 18:03:29 +01:00
Cory Benfield
2d96d31212
Test automatic flow control
2018-05-09 17:53:41 +01:00
Cory Benfield
ee9397f19e
Be safe against reentrancy.
2018-05-09 15:52:46 +01:00
Cory Benfield
e4111c2c51
Don't flush unnecessarily
2018-05-04 18:49:16 +01:00
Cory Benfield
3c6aa2c14c
Be careful about flush handling.
2018-05-04 18:31:01 +01:00
Cory Benfield
df9127952a
Fail unflushed writes on EOF
2018-05-04 15:43:33 +01:00
Cory Benfield
9358a194ae
Add support for PING frames
2018-05-04 14:46:42 +01:00
Cory Benfield
e83baf083c
Use the cached allocator
2018-05-03 17:27:10 +01:00
Cory Benfield
ed7ce3e297
Confirm we can override default settings
2018-05-03 17:12:46 +01:00
Cory Benfield
409da26764
Allow passing default settings.
2018-05-03 17:01:26 +01:00
Cory Benfield
9b0b68e731
More expressive SETTINGS api
2018-05-03 16:23:43 +01:00
Cory Benfield
22e879d3cb
Test breaching SETTINGS_MAX_CONCURRENT_STREAMS
2018-05-03 14:18:49 +01:00
Cory Benfield
c937029ad4
Remove CONTINUATION (and so endHeaders).
...
We treat CONTINUATION frames as an implementation detail, which means the
endStream flag is also redundant. Let's remove both.
2018-05-03 10:48:54 +01:00
Cory Benfield
58284885d6
Remove warnings
2018-05-03 10:37:03 +01:00
Cory Benfield
1d727f21ee
Test splitting fileregions
2018-05-02 21:32:42 +01:00
Cory Benfield
b9734dc3d7
Test basic file regions
2018-05-02 21:02:51 +01:00
Cory Benfield
f4dcce5058
Test auto-splitting large DATA frames
2018-05-02 17:13:50 +01:00
Cory Benfield
f82baa9378
Test stream quiescing
2018-05-02 15:36:05 +01:00
Cory Benfield
2cfbdb7ac5
Simple GoAway support
2018-05-02 14:42:55 +01:00