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

4 commits

Author SHA1 Message Date
Damian Janowski
3efb57b140 Make TimedQueue use pop/push for better performance. 2012-12-18 14:24:54 -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
bff870bf87 Nicer syntax for building TimedQueues. 2012-03-14 10:21:07 -03:00
Mike Perham
751be41b6b Move timed_queue, prepare for release 2011-09-19 14:29:59 -07:00
Renamed from lib/connection_pool/timed_queue.rb (Browse further)