Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/recover #6

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

dguerizec
Copy link
Contributor

Added the ability to force decoding if an index is unknown in the dynamic table.

This is enabled with the flag HPACK_CFG_DEGRADED passed to hpack_decoder().

Note: This needs more testing, and code coverage and documentation are not done yet.

@codecov-commenter
Copy link

codecov-commenter commented Jul 22, 2020

Codecov Report

Merging #6 into master will decrease coverage by 1.31%.
The diff coverage is 57.89%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   99.14%   97.82%   -1.32%     
==========================================
  Files          16       16              
  Lines        1753     1793      +40     
  Branches      347      366      +19     
==========================================
+ Hits         1738     1754      +16     
- Misses          0       16      +16     
- Partials       15       23       +8     
Impacted Files Coverage Δ
lib/hpack_tbl.c 90.10% <29.62%> (-9.90%) ⬇️
lib/hpack.c 98.47% <61.53%> (-0.84%) ⬇️
inc/tbl/hpack_tbl.h 100.00% <100.00%> (ø)
tst/fdecode.c 100.00% <100.00%> (ø)
tst/hdecode.c 100.00% <100.00%> (ø)
tst/hencode.c 100.00% <100.00%> (ø)
tst/hpack_arg.c 100.00% <100.00%> (ø)
tst/hpack_mbm.c 78.26% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b47de51...6c920df. Read the comment docs.

Event PTR and RECERR can be enabled with resp. HPACK_CFG_SEND_PTR and HPACK_CFG_SEND_ERR
@dguerizec dguerizec marked this pull request as ready for review July 23, 2020 09:32
lib/hpack_tbl.c Outdated
ctx->fld.val = hpack_unknown_value;
ctx->fld.nam_sz = strlen(ctx->fld.nam);
ctx->fld.val_sz = strlen(ctx->fld.val);
while(idx > ctx->hp->cnt) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this loop, but don't know how to get rid of it.
Comments welcome!

Also avoid copy of sentinel values to be able to use them in event callback.
dridi and others added 4 commits July 30, 2020 17:49
They were specifically centralized in tst.c to avoid repetition.
This offers a human readable string, convenient for event reporting.

Signed-off-by: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants