tomekw/hikari-cp

[request] missing option :leak-detection-threshold

timgluz opened this issue · 6 comments

Hi,

i'm currently trying to find a connection leak in my app and i noticed i cant change leakDetectionThreshold value.

Hi @timgluz,

Would it work for you to set it using the configure option? It would probably something along the lines of:

(make-datasource {:configure (fn [cfg] (.setLeakDetectionThreshold ...))})

i'll give a try - but i already forked a project to add a new optional-key into settings map.

In such case a PR is more than welcome! I'd be excellent if your patch also updates the list of options in README and adds a changelog entry.

@jstepien Btw, do you use hikari-cp in production? Have you ever encountered connection-leak with it?

We do, with both MySQL and PostgreSQL, and to the best of my knowledge we haven't experienced problems you described in brettwooldridge/HikariCP#513

Merged in #19