ActiveRecord and Thread

Hello.
I have a multi-client TCP server for connect user's clients to rails
applications.
One client has one Thread.
In the Thread block I execute ActiveRecord's query functions.
But ActiveRecord creates a new connection per Thread and i get the
problems with many connections and the limit of them.
I want to use one connection for all Threads. How I may do it?

Sorry for my english.

Yan

Try read this link. I think here you will find your answer.

http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html

Att

Andre Fonseca
http://www.andrefonseca.net