You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在xqc_cubic.c的xqc_cubic_update函数实现中,line 66 ~ 70:
/*
* t = elapsed_time * 1024 / 1000000, convert microseconds to milliseconds,
* multiply by 1024 in order to be able to use bit operations later.
*/
t = (now + cubic->min_rtt - cubic->epoch_start) << XQC_CUBIC_TIME_SCALE / XQC_MICROS_PER_SECOND;
What happened?
在xqc_cubic.c的xqc_cubic_update函数实现中,line 66 ~ 70:
/*
* t = elapsed_time * 1024 / 1000000, convert microseconds to milliseconds,
* multiply by 1024 in order to be able to use bit operations later.
*/
t = (now + cubic->min_rtt - cubic->epoch_start) << XQC_CUBIC_TIME_SCALE / XQC_MICROS_PER_SECOND;
结合注释和上下文逻辑,很明显编码者相要的实现是
t =( (now + cubic->min_rtt - cubic->epoch_start) << XQC_CUBIC_TIME_SCALE) / XQC_MICROS_PER_SECOND;
所以,当前实现是一个bug。
Steps To Reproduce
查看xqc_cubic.c的xqc_cubic_update函数源码或添加打印。
Relevant log output
No response
The text was updated successfully, but these errors were encountered: