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: mdsconnect incorrectly aborts on the first connection #2535

Open
wants to merge 1 commit into
base: alpha
Choose a base branch
from

Conversation

WhoBrokeTheBuild
Copy link
Member

Somewhere along the line TdiShrExt->rMdsConnect started returning the connection number (starting at 0) instead of a status code.
So on an error, it actually returns -1, not 0.
If mdsconnect is called with _abort set, then it will abort() on the first connection (_status == 0).

@WhoBrokeTheBuild WhoBrokeTheBuild added the bug An unexpected problem or unintended behavior label Feb 16, 2023
@WhoBrokeTheBuild WhoBrokeTheBuild self-assigned this Feb 16, 2023
@WhoBrokeTheBuild
Copy link
Member Author

Retest this please

@WhoBrokeTheBuild WhoBrokeTheBuild force-pushed the slw-fix-mdsconnect-abort branch from 7e34a51 to eb0e16d Compare April 6, 2023 19:34
Somewhere along the line TdiShrExt->rMdsConnect started returning the connection number (starting at 0) instead of a status code.
On an error, it actually returns -1, not 0.
If mdsconnect is called with _abort set, then it will abort() on the first connection.
@joshStillerman joshStillerman force-pushed the slw-fix-mdsconnect-abort branch from eb0e16d to 953bda0 Compare May 2, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant