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 Division by Zero in FairQueueing when m_active is 0 #1089

Merged
merged 1 commit into from
May 8, 2024

Commits on May 7, 2024

  1. Prevent division by zero in FairQueueing when no active pipes are ava…

    …ilable
    
    This commit fixes a potential DivideByZeroException in the FairQueueing class by conditionally performing the modulo operation only when there are active pipes (m_active > 0). This issue occurs during round-robin processing of messages when all pipes have been deactivated. The modification ensures stability and prevents crashes under these specific conditions.
    fales1488 committed May 7, 2024
    Configuration menu
    Copy the full SHA
    2ce70f0 View commit details
    Browse the repository at this point in the history