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 ArithmeticException "/ by zero" in Pool.acquire() #5732

Merged
merged 2 commits into from
Nov 26, 2020

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Nov 26, 2020

[closes #5731]
Just add a if (size == 0) check when the size is re-calculated to avoid the ArithmeticException of the modulo operator.

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban lorban changed the title [closes #5731] Fix ArithmeticException "/ by zero" in Pool.acquire() Fix ArithmeticException "/ by zero" in Pool.acquire() Nov 26, 2020
@lorban lorban merged commit df5622e into jetty-10.0.x Nov 26, 2020
@lorban lorban deleted the jetty-10.0.x-5731-Pool-ArithmeticException branch November 26, 2020 11: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.

ArithmeticException "/ by zero" from jetty-util pool
3 participants