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

15-5http_conn.cpp 代码问题 #5

Open
Asan233 opened this issue Feb 14, 2025 · 0 comments
Open

15-5http_conn.cpp 代码问题 #5

Asan233 opened this issue Feb 14, 2025 · 0 comments

Comments

@Asan233
Copy link

Asan233 commented Feb 14, 2025

判断if ( bytes_to_send <= bytes_have_send )感觉有问题,如图bytes_to_send表示剩余要发送的数据,bytes_have_send表示已经发送,当byes_to_send = 200, 而bytes_have_send = 800 时,也满足条件进入后返回,剩余的数据并没有发送完成,应该是否改成if(bytes_to_send<=0) ?,还是我的理解有误?

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

1 participant