-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
Event PTR and RECERR can be enabled with resp. HPACK_CFG_SEND_PTR and HPACK_CFG_SEND_ERR
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) { |
There was a problem hiding this comment.
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.
15e3b63
to
05a7ae6
Compare
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>
Superseded by #8. |
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.