Skip to content
Snippets Groups Projects
Commit 65611999 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa
Browse files

Fix assertion failure because of bad CRYPTO offset provisioning

This commit fixes the assertion failure which happens when
acknowledgement of earlier packet increases CRYPTO offset.
Previously, the offset is always the first CRYPTO frame offset in the
queue (pktns->crypto.tx.frq).  But passing this into
ngtcp2_pkt_crypto_max_datalen() underestimates the space because
acknowledgement might increase offset; it increases the required space
to serialize offset.
parent 3bb73393
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment