-
Notifications
You must be signed in to change notification settings - Fork 108
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
Connection doesn't automatically close #368
Comments
This is biting us in the butt really hard right now in production, has anybody found a workaround? |
This code is very suspicious: Lines 159 to 169 in 7421553
Maybe that's the culprit? |
FWIW, Spectrum.chat forked rethinkdbdash for the apparent sole purpose of uncommenting that code: The source for the fork is not on Github and only on npm. Doing a diff, the only other difference I saw was the addition of an The forked package is rethinkhaberdashery. |
That is correct, that was us! 👍 Feel free to use the package, but it is unlikely we will do any more maintenance on it. The real fix in our case was to limit the number of connections much lower than the defaults and making the https://github.com/withspectrum/spectrum/blob/alpha/shared/db/db.js#L12-L19 |
Using the connection pool in an app that pulls data from a RDB server based on user activity doesn't work as intented.
The library inflates the connection pool to the extremes making the application crash due to a TCP Read error by never closing the connection after the query has been ran.
The text was updated successfully, but these errors were encountered: