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

onLoop() method not called each X microsonds #17

Open
baudev opened this issue Dec 4, 2019 · 0 comments
Open

onLoop() method not called each X microsonds #17

baudev opened this issue Dec 4, 2019 · 0 comments

Comments

@baudev
Copy link
Owner

baudev commented Dec 4, 2019

What is the bug?

This issue is concerning a bug with the onLoop() method.

The way of handling the onLoop timer is not correct. Indeed, it uses the timeout of the connection.
Then, each message received reset the timer.

How to reproduce this bug?

// enable the onLoop method
$test->enableOnLoopMethod(5 * 1000 * 1000); //onLoop should be called each 5 seconds
  1. Launch the script
  2. Wait 3 seconds and send a message from the client to the server
  3. The onLoop() method will be called only 5 seconds after the message has been received
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant