1
0
Fork 0
mirror of https://github.com/mperham/connection_pool synced 2023-03-27 23:22:21 -04:00
Commit graph

23 commits

Author SHA1 Message Date
matt camuto
99c2f0ff04 second test for timeout 2013-09-23 21:47:01 -07:00
matt camuto
00318a444b options for timout on with 2013-09-23 20:28:50 -07:00
Damian Janowski
ebae2350c0 Revert "Fix MiniTest name." since it was intentional.
This reverts commit fe092277e9.
2013-08-14 23:33:19 -03:00
Damian Janowski
fe092277e9 Fix MiniTest name. 2013-08-14 22:39:21 -03:00
Kendall Gifford
1e0d14ecd8 Allow us to shutdown pool within a wrapper 2013-06-15 11:39:32 -06:00
Kendall Gifford
27b00a74c2 Provide access to the pool inside a wrapper 2013-06-14 17:41:09 -06:00
Mike Perham
621d3a5dfa Upgrade to minitest 5 2013-05-29 08:48:27 -07:00
Simão Mata
6caf9d5227 New shutdown method 2013-05-28 22:10:08 +02:00
Damian Janowski
ae182c844c Deprecate #with_connection in favor of #with. 2012-12-18 23:35:21 -03:00
Damian Janowski
5053b327f1 Checking in pushes objects to the head of the queue.
This means that, when not saturated, objects in the pool will be reused
more often.

This behavior allows you to create a pool of objects which in turn have
some kind of time outs themselves. For instance, objects which keep an
underlying TCP connection open until they're idle for some time. An
example of this is `Net::HTTP::Persistent`.

See also issue #20.
2012-12-18 14:05:13 -03:00
Damian Janowski
f0cb4ea11f Restore Wrapper inheriting from BasicObject. Closes #16. 2012-12-18 13:50:12 -03:00
Damian Janowski
29cd6d7b56 More robust Wrapper#respond_to?.
See #25.
2012-12-18 13:41:59 -03:00
Petteri Räty
387013797b Fix nested checkouts
If you did nested checkouts the inner use would check the connection
back to the pool and then the outer checkout could be using a connection
at the same time with something else. See issue #14.
2012-06-18 16:15:50 +03:00
Mike Perham
ad08c55f8b Wrapper should provide 'with' just like a ConnectionPool instance, minor cleanup. 2012-03-14 08:36:40 -07:00
Damian Janowski
8ec4b4e7c5 Do pass-through via a specialized class. 2012-03-14 10:07:43 -03:00
Pete Higgins
c176da4cc7 Smaller timeout. 2012-02-08 09:45:26 -08:00
Pete Higgins
5977adf0f5 Fix method_missing with block. 2012-02-08 09:44:18 -08:00
Ryan LeCompte
05e6b035fb fix intermittent failure for issue #2 2012-02-05 19:54:48 -08:00
Mike Perham
b36d8cc056 Suggestions from @brixen 2011-09-25 19:23:35 -07:00
Mike Perham
6f39ecd68e More correct usage of condition variables, release 0.0.3 2011-09-12 21:01:38 -07:00
Mike Perham
e91483ac6f Exception upon checkout now causes 100% less corruption! 2011-09-09 14:12:23 -07:00
Mike Perham
5ddef034cf More testing, threading fixes 2011-05-14 19:42:07 -07:00
Mike Perham
27362471c6 Add project info, tests 2011-05-14 15:36:17 -07:00