QPACK发送Section Acknowledgment的逻辑 #296
tianxinheihei
started this conversation in
General
Replies: 1 comment
-
|
我估计是你的HEADERS里边,所有的header能够在静态表找到,或者动态表里边已经包含了这些条目。 代码中这个fin是表示解析完一个HEADERS帧,xqc_rep_get_ric是表示是否有required insert count,所以只有解析完header,并且当前header里边,需要新的动态表条目,才会返回SA,相当于说告诉编码侧收到了动态表条目,并且已经成功解码HEADERS帧。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,线下测试发现xquic在收到并解析请求后没有发送Section Acknowledgment,看了下代码,是有这段逻辑的,但是却不会触发,是我对设计理解有误么?
如下图所示,xqc_qpack.c代码中虽然有发送Section Acknowledgment的逻辑,但是fin是XQC_FALSE,因此并不会触发Section Acknowledgment的发送逻辑。
在解析http3 headers frame后,pctx->state == XQC_H3_FRM_STATE_PAYLOAD
xqc_bool_t fin = pctx->state == XQC_H3_FRM_STATE_END ? XQC_TRUE : XQC_FALSE;
Beta Was this translation helpful? Give feedback.
All reactions