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

Process client packets before run schedulers #587

Closed
wants to merge 1 commit into from
Closed

Process client packets before run schedulers #587

wants to merge 1 commit into from

Conversation

ramon-bernardo
Copy link

Objective

  • Process client packets before run schedulers, removing duplicate code.


if remaining > 0 {
check_again.push((entity, remaining));
let mut pending_packets = client.connection().len();
Copy link
Author

@ramon-bernardo ramon-bernardo Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We look for the number of pending packets beforehand, so that new packets from the client are handled in the next execution. Avoiding a loop between current packets pending vs news.

Copy link
Collaborator

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks OK to me, but I would prefer a second opinion considering the context.

@rj00a
Copy link
Member

rj00a commented Jan 29, 2024

Closing as per #596

@rj00a rj00a closed this Jan 29, 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.

3 participants