Skip to content

Conversation

@jiahui-grabtaxi
Copy link
Contributor

We used this library in one of our application to prevent race condition when two cron jobs are running at the same time.
Our cron job runs every hour, the one that failed to retrieve the lock will always have its connection opened.
The connection count increases until the connection pool exhausted and our application crashed.

Please consider merging this into the main branch 😄

@jiahui-grabtaxi jiahui-grabtaxi changed the title Close db connection whenever failed to retrieve lock to prevent dataleak Close db connection whenever failed to retrieve lock to prevent connection leak Mar 15, 2024
@sanketplus sanketplus merged commit db609c2 into sanketplus:master Apr 1, 2024
@sanketplus
Copy link
Owner

thank you for the fix :)

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.

2 participants