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: all commands go through the queue #101

Merged
merged 4 commits into from
Mar 4, 2024
Merged

fix: all commands go through the queue #101

merged 4 commits into from
Mar 4, 2024

Conversation

andrew-welker
Copy link
Contributor

@andrew-welker andrew-welker commented Jan 19, 2024

There were some instances where any command that responded with a +OK and not a value bypassed the command queue. This caused issues, as the subsequent GET command to update feedback for a router output WAS enqueued, and responses from subsequent SET responses were stepping on the +OK 0 responses to the GET commands. This is especially apparent on RS-232 connections, and probably doesn't present as an issue for SSH connections.

fixes #89

There were some instances where any command that responded with a `+OK`
and not a value bypassed the command queue. This caused
issues, as the subsequent `GET` command to update feedback for a router
output WAS enqueued, and responses from subsequent `SET` responses were
stepping on the `+OK 0` responses to the `GET` commands. This is
especially apparent on RS-232 connections, and probably doesn't present
as an issue for SSH connections.

ref: #89
@andrew-welker andrew-welker requested a review from cdenig January 19, 2024 21:11
@andrew-welker andrew-welker marked this pull request as ready for review January 19, 2024 21:21
@cdenig
Copy link
Contributor

cdenig commented Mar 4, 2024

[X] Updates tested on multiple systems.
[X] Setting multiple switcher/router outputs to 0 at same time no longer causes multi-threaded command/response issues. All commands are queue. Switching between fader, preset, and router commands does not cause issue. Responses remain quick; imperceptible time delays from end user standpoint. When debugging, can see commands enqueue and pop off.
NOTE: no dialers present in test system.

@cdenig cdenig closed this Mar 4, 2024
@cdenig cdenig reopened this Mar 4, 2024
@cdenig
Copy link
Contributor

cdenig commented Mar 4, 2024

accidental close. OK to merge.

Copy link
Contributor

@cdenig cdenig left a comment

Choose a reason for hiding this comment

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

[X] changes tested on multiple systems. Working well in all. Previous multi-threading error no longer causing error.

@cdenig cdenig merged commit 6002200 into main Mar 4, 2024
2 checks passed
@cdenig cdenig deleted the hotfix/queue-issues branch March 4, 2024 17:43
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.

[BUG]- v2.3.4 - CommandQueue error when many router updates occur at same time
2 participants