20 Commits
Author SHA1 Message Date
Johannes Weiss 346af5be0e don't crash when client sends bad magic (#12)
Motivation:

We shouldn't just crash if the client sends bad magic.

Changes:

Send an error through the pipeline instead of crashing on bad client
magic.

Result:

fewer crashes
2018-08-16 15:29:14 +01:00
Cory Benfield b7085b6c0d Correctly discard only inactive streams. (#11)
Motivation:

Long-lived connections that have many inactive streams would cause
crashes. Crashes are, in my professional opinion, less than ideal
when they occur under expected usage cases.

Modifications:

- Fixed an inverted boolean check that would discard only *active*
  streams.
- Made the cached stream count configurable, removing a TODO.
- Added tests.

Result:

Fewer crashes, better software.
2018-08-15 21:26:50 +01:00
Cory Benfield 36321d080e Clean up tests. (#9)
Motivation:

Our tests were failing as a result of the previous commit changing the
HTTP/2 lifecycle.

Modifications:

Fired channelActive in a few tests, correctly propagated
channelInactive.

Result:

Tests should pass.
2018-05-20 11:18:25 +01:00
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.
2018-05-18 17:53:21 +01:00
Cory Benfield 4acc76bfd7 Fire user events when streams are closed 2018-05-14 17:57:10 +01:00
Cory Benfield a5854839c7 Refactor state tracking for streams 2018-05-14 12:53:58 +01:00
Cory Benfield ee9397f19e Be safe against reentrancy. 2018-05-09 15:52:46 +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 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 1ef32a0d3d Correct handling of stream IDs. 2018-04-27 15:40:18 +01:00
Cory Benfield 9183e0c79c More test infrastructure, better error reporting 2018-04-26 13:17:05 +01:00
Cory Benfield d555f46cce Initial basic client support 2018-04-25 18:02:35 +01:00
Cory Benfield 3cf74039d9 Fix many issues writing DATA frames 2018-04-16 16:09:13 +01:00
Cory Benfield e4de5788a5 Initial support for writing DATA frames 2018-04-16 15:08:08 +01:00
Johannes Weiß 504c24939e very rough first steps towards the first handled HTTP/2 request 2018-04-11 15:06:12 +01:00