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

fix: messages could be sent out of order if they had to queue #225

Merged
merged 5 commits into from
Aug 17, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 17, 2023

The queue should have been read from the left, but it was instead read from the right which meant if
the message did not send right away it was LIFO instead of FIFO

This went unnoticed because most of the time we can send immediately and it never queues

This probably didn't break anything but it meant that the queue had to empty before code could continue if we awaited the future, and since messages kept getting put in and going out first, it made things more latent than need be

bdraco added 2 commits August 17, 2023 14:43
The queue should have been read from the left, but
it was instead read from the right which meant if
the message did not send right away it was LIFO instead
of FIFO
The queue should have been read from the left, but
it was instead read from the right which meant if
the message did not send right away it was LIFO instead
of FIFO
bdraco added 3 commits August 17, 2023 14:48
The queue should have been read from the left, but
it was instead read from the right which meant if
the message did not send right away it was LIFO instead
of FIFO
The queue should have been read from the left, but
it was instead read from the right which meant if
the message did not send right away it was LIFO instead
of FIFO
The queue should have been read from the left, but
it was instead read from the right which meant if
the message did not send right away it was LIFO instead
of FIFO
@bdraco bdraco changed the title fix: messages were sent out of order if they queued fix: messages were sent out of order if they had to queue Aug 17, 2023
@bdraco bdraco changed the title fix: messages were sent out of order if they had to queue fix: messages could be sent out of order if they had to queue Aug 17, 2023
@bdraco bdraco marked this pull request as ready for review August 17, 2023 19:58
@bdraco bdraco merged commit 4051cf2 into main Aug 17, 2023
@bdraco bdraco deleted the gatt_writes branch August 17, 2023 19:58
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.

1 participant