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

StackOverFlow error caused by recursion in newConnection #1341

Open
dj22 opened this issue Oct 24, 2012 · 2 comments
Open

StackOverFlow error caused by recursion in newConnection #1341

dj22 opened this issue Oct 24, 2012 · 2 comments

Comments

@dj22
Copy link

dj22 commented Oct 24, 2012

In DB.scala newConnection can fail and recursively call itself until the stack overflows. We have seen this happen using both Oracle and H2-Server when the database becomes unavailable and therefore connections to it fail.

@serioga
Copy link

serioga commented Apr 28, 2013

@constantine2nd
Copy link

Solution: Fix bug and prevent StackOverFlow via loop function

Fix: do not increase the pool size in case of invalid connection
Improvement: rewrite recursive to loop function

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

No branches or pull requests

3 participants