From: Francis Cianfrocca Date: 2006-08-07T11:16:18+09:00 Subject: Re: threads and system calls On 8/6/06, snacktime wrote: > Am I correct that version_0 in the repository is the current branch > you are releasing from? I was just playing around with creating a > simple line handling protocol using some of the code you had in > another directory. > > Also, any suggestions on how to implement a pool of database > connections that can be reused? > > Version_0 is the current release branch. The other ones are experimental and pure-ruby branches. The obvious way to do a connection pool would be with Ruby's thread-safe Queue object. You could pull a connection off when you needed one and do the work with EventMachine#defer. If this doesn't make any sense, please let me know. It's probably worth having a connection pool implemented in a standard way in the library itself.