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

为什么比较 segment.rto 和 current 的大小? #106

Closed
gitbufenshuo opened this issue Nov 14, 2018 · 2 comments
Closed

为什么比较 segment.rto 和 current 的大小? #106

gitbufenshuo opened this issue Nov 14, 2018 · 2 comments

Comments

@gitbufenshuo
Copy link

kcp-go/kcp.go

Line 801 in 263526e

if rto := _itimediff(segment.rto, current); rto > 0 && rto < minrto {

是不是应该比较 segment.resendts 和 current:
if rto := _itimediff(segment.resendts, current); rto > 0 && rto < minrto {

@xtaci
Copy link
Owner

xtaci commented Nov 14, 2018

嗯,看上去是个bug,我测试下

xtaci added a commit that referenced this issue Nov 14, 2018
@xtaci
Copy link
Owner

xtaci commented Nov 14, 2018

fixed

@xtaci xtaci closed this as completed Nov 14, 2018
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

No branches or pull requests

2 participants