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

添加IKCP_FASTACK_CONSERVE宏 避免多次触发快重传 #409

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

Alan-yly
Copy link
Contributor

@Alan-yly Alan-yly commented Apr 9, 2024

在ikcp_parse_fastack函数里发现如果不定义IKCP_FASTACK_CONSERVE宏,会导致已经重传的报文的报文被反复触发快重传,比如:发送端A报文已经重传了,之后发送端收到大于A报文编号的几个报文的ack,那么这些ack又会导致快重传A报文。
image
所以应该添加这个宏,使用sn序号和ts时间戳共同决定报文是否需要快重传。

@skywind3000 skywind3000 merged commit 7a878bf into skywind3000:master Apr 9, 2024
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.

2 participants