fukamachi / anypool

General-purpose connection pooling library for Common Lisp
BSD 2-Clause "Simplified" License
25 stars 3 forks source link

Bugfix active-count increment #1

Closed gos-k closed 1 year ago

gos-k commented 1 year ago

Problem

If equal max-open-count and threads then it expected to success calling fetch everytime. But sometime too-meny-open-connection is thrown if number of idle-timeout unittest loops (ex. 1000000) increases.

Cause

active-count increment if timeout item.

Solution

active-count increment only if return object.

fukamachi commented 1 year ago

Merged, thanks!