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

There are one bug in the function 'timeoutResender' in network.h #11

Open
loveheaven opened this issue Jul 14, 2020 · 0 comments
Open

Comments

@loveheaven
Copy link

There are one bug in the function 'timeoutResender' in network.h

if (pkg.send_time + max_retry_times * timeout >= cur_time) { sending_queue.pop(); continue; } else if (pkg.send_time + timeout >= cur_time) { const time_t interval = pkg.send_time + timeout - cur_time; assert(interval >= 0); std::this_thread::sleep_for(std::chrono::seconds(interval)); }

The 'else if' cannot be reached.

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