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

writeLoop 可能写不完整 #38

Open
magengbin opened this issue Dec 8, 2019 · 2 comments
Open

writeLoop 可能写不完整 #38

magengbin opened this issue Dec 8, 2019 · 2 comments

Comments

@magengbin
Copy link

tao/conn.go

Line 686 in 50d6193

if _, err = rawConn.Write(pkt); err != nil {

要对比实际写的长度跟预期是否一致

@leesper
Copy link
Owner

leesper commented Mar 14, 2020

@magengbin 好的!请教一下,如果不一致,比如少了,是否继续write?

@magengbin
Copy link
Author

是否继续write?

我觉得要重试的,重试的时机要选择一些。立刻重试还是等一下。

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